84% wp-post-category-notifications

Code Review | WP Post Category Notifications

WordPress plugin WP Post Category Notifications scored84%from 54 tests.

About plugin

  • Plugin page: wp-post-category-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7
  • WordPress version: 6.3.1
  • First release: Apr 18, 2016
  • Latest release: Dec 30, 2016
  • Number of updates: 7
  • Update frequency: every 39.4 days
  • Top authors: MAL73049 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by WP Post Category Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.90 ▼4.04
Dashboard /wp-admin3.33 ▲0.0355.64 ▲1.82
Posts /wp-admin/edit.php3.39 ▲0.0350.62 ▲2.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0390.37 ▼21.02
Media Library /wp-admin/upload.php3.26 ▲0.0355.79 ▲17.85
WP Post Category Notifications /wp-admin/options-general.php?page=WP_Post_Manager_Options3.3040.04

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Post Category Notifications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.21 ▼0.371.72 ▲0.0843.82 ▼2.24
Dashboard /wp-admin2,202 ▲255.62 ▲0.0493.61 ▲3.2340.46 ▼5.49
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0434.75 ▼5.6232.04 ▼6.43
Add New Post /wp-admin/post-new.php1,534 ▲823.15 ▲0.09692.22 ▲22.8855.38 ▼4.18
Media Library /wp-admin/upload.php1,407 ▲44.41 ▲0.28102.88 ▼4.2942.73 ▼4.81
WP Post Category Notifications /wp-admin/options-general.php?page=WP_Post_Manager_Options9002.2535.9146.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-post-category-notifications/wp-post-category-notifications_log.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-post-category-notifications/wp-post-category-notifications_options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-category-notifications/wp-post-category-notifications.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-post-category-notifications/wp-post-category-notifications_log_template.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

wp-post-category-notifications/wp-post-category-notifications.php Passed 13 tests

Analyzing the main PHP file in "WP Post Category Notifications" version 1.0
73 characters long description:
Sends category specific email notifications whenever a post is published.

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
Everything looks great! No dangerous files found in this plugin673 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP48340517
PO File25830156

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin