93% simple-post-status-notifications

Code Review | Simple post status notifications

WordPress plugin Simple post status notifications scored 93% from 54 tests.

About plugin

  • Plugin page: simple-post-statu...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Mar 6, 2015
  • Latest release: Jun 24, 2015
  • Number of updates: 8
  • Update frequency: every 17.4 days
  • Top authors: dientuki (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,213 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼151.05ms] Passed 4 tests

An overview of server-side resources used by Simple post status notifications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0027.25 ▲2.41
Dashboard /wp-admin3.10 ▲0.0335.10 ▼5.96
Posts /wp-admin/edit.php3.15 ▲0.0438.52 ▼5.36
Add New Post /wp-admin/post-new.php5.46 ▲0.0271.49 ▼590.51
Media Library /wp-admin/upload.php3.04 ▲0.0425.67 ▼2.35
Simple Post Status Notifications /wp-admin/options-general.php?page=spsn-settings3.0223.17

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple post status notifications
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,696 ▲9515.93 ▲0.067.01 ▲2.0574.94 ▲2.96
Dashboard /wp-admin2,935 ▲426.01 ▼0.08115.55 ▼11.43172.09 ▼2.13
Posts /wp-admin/edit.php2,745 ▲53.22 ▼0.0061.14 ▼3.47139.97 ▲2.33
Add New Post /wp-admin/post-new.php3,920 ▲18518.88 ▲0.66418.67 ▼9.12166.01 ▲9.11
Media Library /wp-admin/upload.php1,757 ▲55.52 ▼0.01145.44 ▼8.68187.03 ▼1.70
Simple Post Status Notifications /wp-admin/options-general.php?page=spsn-settings1,1722.4053.60112.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 is_admin() in wp-content/plugins/simple-post-status-notifications/spsn.php:441

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
  • Tags: There are too many tags (25 tag instead of maximum 10)
  • Plugin Name: Please specify the plugin name on the first line ( === simple-post-status-notifications === )
You can look at the official readme.txt

simple-post-status-notifications/spsn.php 85% from 13 tests

This is the main PHP file of "Simple post status notifications" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-post-status-notifications.php" instead of "spsn.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)

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 plugin403 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP276104280
PO File24040123

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin