74% revised-publishing-status

Code Review | WP Revised Status

WordPress plugin WP Revised Status scored74%from 54 tests.

About plugin

  • Plugin page: revised-publishin...
  • Plugin version: 0.8.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.0
  • WordPress version: 6.3.1
  • First release: Jul 22, 2015
  • Latest release: Aug 9, 2016
  • Number of updates: 40
  • Update frequency: every 9.6 days
  • Top authors: yivi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,137 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.04MB] [CPU: ▼7.50ms] Passed 4 tests

An overview of server-side resources used by WP Revised Status
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.86 ▼0.21
Dashboard /wp-admin3.44 ▲0.1457.27 ▲2.50
Posts /wp-admin/edit.php3.55 ▲0.2056.38 ▲3.60
Add New Post /wp-admin/post-new.php5.33 ▼0.5672.84 ▼32.42
Media Library /wp-admin/upload.php3.36 ▲0.1336.57 ▲0.14
Published Status Revisions /wp-admin/options-general.php?page=revised_status_options3.3335.55

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Revised Status
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▲0.071.68 ▼0.1543.13 ▼3.46
Dashboard /wp-admin2,199 ▲195.62 ▲0.0891.83 ▼2.9439.15 ▼2.44
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0141.07 ▲4.7837.50 ▲1.65
Add New Post /wp-admin/post-new.php6,229 ▲4,70321.04 ▼2.09818.29 ▲142.5165.90 ▲9.12
Media Library /wp-admin/upload.php1,407 ▲74.18 ▲0.0098.78 ▼5.3042.56 ▼6.20
Published Status Revisions /wp-admin/options-general.php?page=revised_status_options1,0782.6550.3542.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'revised_status_deactivate' not found or invalid function name
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Trait 'RevisedStatus\\Base' not found in wp-content/plugins/revised-publishing-status/src/RevisedStatus/Controller/RevisionManager.php on line 15
    • > PHP Fatal error
      Trait 'RevisedStatus\\Base' not found in wp-content/plugins/revised-publishing-status/src/RevisedStatus/View/Options.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/revised-publishing-status/init.php:24
    • > PHP Fatal error
      Trait 'RevisedStatus\\Base' not found in wp-content/plugins/revised-publishing-status/src/RevisedStatus/View/RevisionMetabox.php on line 15
    • > PHP Fatal error
      Trait 'RevisedStatus\\Base' not found in wp-content/plugins/revised-publishing-status/src/RevisedStatus/Controller/Options.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: revisions, publishing-status

revised-publishing-status/init.php 85% from 13 tests

Analyzing the main PHP file in "WP Revised Status" version 0.8.6
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("revised-publishing-status.php" instead of "init.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin688 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7169262470
PO File13032114
Markdown134067
JSON20037

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity17.40
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces3
Interfaces0
Traits1
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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