71% wpsite-post-status-notifications

Code Review | Post Status Notifications

WordPress plugin Post Status Notifications scored71%from 54 tests.

About plugin

  • Plugin page: wpsite-post-statu...
  • Plugin version: 3.2.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3
  • WordPress version: 6.3.1
  • First release: May 1, 2014
  • Latest release: Aug 29, 2023
  • Number of updates: 32
  • Update frequency: every 106.5 days
  • Top authors: 99robots (75%)wpsitenet (28.13%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /26,901 total downloads

Benchmarks

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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.07ms] Passed 4 tests

This is a short check of server-side resources used by Post Status Notifications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0940.24 ▼4.65
Dashboard /wp-admin3.41 ▲0.1051.29 ▼5.36
Posts /wp-admin/edit.php3.52 ▲0.1651.05 ▼4.76
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.55 ▼9.51
Media Library /wp-admin/upload.php3.33 ▲0.1040.76 ▲3.78
Post Status Notifications /wp-admin/options-general.php?page=wpsite-post-status-notification-admin-settings3.3835.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Post Status Notifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.68 ▼0.691.64 ▼0.4642.16 ▼3.94
Dashboard /wp-admin2,213 ▲255.85 ▲0.9199.85 ▼10.7540.98 ▼5.83
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0437.09 ▲3.1434.31 ▼4.61
Add New Post /wp-admin/post-new.php1,536 ▲323.46 ▲0.12638.50 ▲4.6450.33 ▼13.90
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.0596.12 ▼11.5443.95 ▼1.06
Post Status Notifications /wp-admin/options-general.php?page=wpsite-post-status-notification-admin-settings1,5412.4644.0180.82

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wpsite-post-status-notifications/admin/footer.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-post-status-notifications/admin/sidebar.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-post-status-notifications/admin/header.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wpsite-post-status-notifications/admin/header.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=wpsite-post-status-notification-admin-settings
    • > Network (severe)
    http://feeds.feedburner.com/99robots?format=sigpro - Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameSite
    • > GET request to /wp-admin/options-general.php?page=wpsite-post-status-notification-admin-settings
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).tabs is not a function" "TypeError: $(...).tabs is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=wpsite-post-status-notification-admin-settings:471:15)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=wpsite-post-status-notification-admin-settings
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).tabs is not a function

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% 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
Attributes that require attention:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Please describe screenshot #2 in wpsite-post-status-notifications/assets to your readme.txt
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

wpsite-post-status-notifications/wpsite-post-status-notification.php 85% from 13 tests

The entry point to "Post Status Notifications" version 3.2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wpsite-post-status-notifications.php" instead of "wpsite-post-status-notification.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 184 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,062 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6190194642
CSS38118403
Markdown110015
JavaScript1192

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.89
Average class complexity104.00
▷ Minimum class complexity104.00
▷ Maximum class complexity104.00
Average method complexity7.06
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.58MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/rainbow-strip-hz-wide.png3.24KB0.57KB▼ 82.36%
img/mask.png1.97KB4.18KB0.00%
img/marker.png0.64KB0.71KB0.00%
img/post-published-contributor.png166.46KB53.24KB▼ 68.02%
img/ad-custom-development.png48.82KB18.46KB▼ 62.20%