90% contributor-notifications

Code Review | Contributor Notifications

WordPress plugin Contributor Notifications scored90%from 54 tests.

About plugin

  • Plugin page: contributor-notif...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 4, 2020
  • Latest release: Aug 19, 2023
  • Number of updates: 14
  • Update frequency: every 92.3 days
  • Top authors: bhadaway (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,085 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by Contributor Notifications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.29 ▲0.66
Dashboard /wp-admin3.34 ▲0.0450.53 ▼0.03
Posts /wp-admin/edit.php3.40 ▲0.0452.63 ▼0.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.22 ▼5.17
Media Library /wp-admin/upload.php3.27 ▲0.0333.72 ▼5.84
Contributor Notifications /wp-admin/options-general.php?page=contributor-notifications3.2334.30

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Contributor Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼0.941.62 ▼0.0539.70 ▼5.71
Dashboard /wp-admin2,210 ▲224.85 ▼1.05101.75 ▼4.8239.05 ▼1.52
Posts /wp-admin/edit.php2,090 ▲11.99 ▼0.0541.37 ▲1.0834.18 ▼2.51
Add New Post /wp-admin/post-new.php1,517 ▼1617.52 ▼5.79666.75 ▲58.2447.28 ▼3.19
Media Library /wp-admin/upload.php1,395 ▲44.20 ▼0.0393.92 ▼11.5043.59 ▲0.27
Contributor Notifications /wp-admin/options-general.php?page=contributor-notifications7822.0524.1925.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: notifications, emails, pending, posts, contributors...

contributor-notifications/contributor-notifications.php 92% from 13 tests

"Contributor Notifications" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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 functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin