83% wp-post-status-notifications

Code Review | WP Post Status Notifications

WordPress plugin WP Post Status Notifications scored83%from 54 tests.

About plugin

  • Plugin page: wp-post-status-no...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Apr 14, 2015
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: josh401 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,043 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.60ms] Passed 4 tests

An overview of server-side resources used by WP Post Status Notifications
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.87 ▼5.40
Dashboard /wp-admin3.33 ▼0.0247.75 ▼14.94
Posts /wp-admin/edit.php3.38 ▲0.0248.59 ▲3.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.42 ▼16.67
Media Library /wp-admin/upload.php3.25 ▲0.0233.97 ▲2.60

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
wp_post_status_rules
wp_post_status_email
widget_recent-posts
wp_post_status_groups
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
wp_post_status_post_types

Browser metrics Passed 4 tests

A check of browser resources used by WP Post Status Notifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9514.80 ▲0.571.90 ▲0.1242.79 ▼4.22
Dashboard /wp-admin2,219 ▲314.86 ▲0.01113.13 ▼2.4336.27 ▼8.87
Posts /wp-admin/edit.php2,105 ▲162.00 ▼0.0038.59 ▲3.2035.47 ▼2.05
Add New Post /wp-admin/post-new.php1,546 ▲2722.60 ▼0.59641.56 ▼39.0861.53 ▲12.31
Media Library /wp-admin/upload.php1,407 ▲194.24 ▲0.0797.86 ▲2.2242.68 ▲0.55

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • wp_post_status_groups
    • wp_post_status_rules
    • wp_post_status_email
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • wp_post_status_post_types
    • db_upgraded

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-post-status-notifications/wp_post_status_notifications.php:41

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 86% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: post email, wp post status notifications, post, page, post status

wp-post-status-notifications/wp_post_status_notifications.php 69% from 13 tests

"WP Post Status Notifications" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: The domain path should be prefixed with a forward slash character ("/")
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-post-status-notifications.php" instead of "wp_post_status_notifications.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin992 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP112386605
PO File189104201
CSS14093
JavaScript1282493

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity95.00
▷ Minimum class complexity95.00
▷ Maximum class complexity95.00
Average method complexity5.44
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected