79% blighty-notify

Code Review | Blighty Notify

WordPress plugin Blighty Notify scored79%from 54 tests.

About plugin

  • Plugin page: blighty-notify
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 7, 2015
  • Latest release: Jun 16, 2017
  • Number of updates: 11
  • Update frequency: every 64.9 days
  • Top authors: Blighty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /723 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.32ms] Passed 4 tests

A check of server-side resources used by Blighty Notify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0151.88 ▲9.09
Dashboard /wp-admin3.34 ▼0.0155.08 ▼14.74
Posts /wp-admin/edit.php3.39 ▲0.0352.55 ▲6.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.47 ▼6.13
Media Library /wp-admin/upload.php3.26 ▲0.0337.73 ▼6.69
Blighty Notify /wp-admin/options-general.php?page=blighty-notify-plugin3.2334.86

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Blighty Notify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.73 ▲0.401.82 ▼0.1243.42 ▼4.02
Dashboard /wp-admin2,202 ▲225.64 ▼0.0687.57 ▼3.5940.92 ▲1.54
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0336.74 ▼2.0136.40 ▼1.91
Add New Post /wp-admin/post-new.php1,534 ▲823.05 ▼0.16659.89 ▼16.3268.85 ▲7.40
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.0894.47 ▼9.4444.97 ▼0.10
Blighty Notify /wp-admin/options-general.php?page=blighty-notify-plugin9372.0125.9428.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/blighty-notify/blighty-notify.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blighty-notify/admin-settings.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: page tracker, notification, email

blighty-notify/blighty-notify.php Passed 13 tests

The principal PHP file in "Blighty Notify" v. 1.4.0 is loaded by WordPress automatically on each request
57 characters long description:
Send an email to the blog admin when a page is requested.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected202 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin