74% notifyme

Code Review | NotifyMe

WordPress plugin NotifyMe scored74%from 54 tests.

About plugin

  • Plugin page: notifyme
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 6.3.1
  • First release: Mar 21, 2016
  • Latest release: Mar 22, 2016
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: iamklaus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /630 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.20ms] Passed 4 tests

A check of server-side resources used by NotifyMe
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.68 ▼3.80
Dashboard /wp-admin3.33 ▲0.0348.00 ▼3.09
Posts /wp-admin/edit.php3.38 ▲0.0350.01 ▼1.63
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.45 ▲1.47
Media Library /wp-admin/upload.php3.25 ▲0.0336.70 ▼0.27

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
wp_notifyme
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for NotifyMe
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲14913.64 ▼1.037.88 ▲6.0739.72 ▼5.33
Dashboard /wp-admin2,206 ▲185.91 ▲1.04103.73 ▼2.8541.40 ▼2.91
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0540.74 ▲3.1235.21 ▲0.66
Add New Post /wp-admin/post-new.php1,514 ▼317.55 ▼0.28675.08 ▲28.8351.22 ▼6.70
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0891.34 ▼8.4740.51 ▼1.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_notifyme
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/notifyme/notifyme.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: posts, update, notification

notifyme/notifyme.php Passed 13 tests

The main PHP file in "NotifyMe" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
Logged in user have the ability to track changes of single (custom) posts by receiving an email.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected147 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1299115
JavaScript13021
CSS12011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin