70% post-status-dashboard

Code Review | Post Status Dashboard

WordPress plugin Post Status Dashboard scored70%from 54 tests.

About plugin

  • Plugin page: post-status-dashb...
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.0.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2015
  • Latest release: Feb 18, 2019
  • Number of updates: 27
  • Update frequency: every 52.0 days
  • Top authors: fuzzguard (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,840 total downloads

Benchmarks

Plugin footprint 48% 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.00MB] [CPU: ▼9.83ms] Passed 4 tests

Server-side resources used by Post Status Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.14 ▼2.36
Dashboard /wp-admin3.31 ▼0.0345.55 ▼15.00
Posts /wp-admin/edit.php3.36 ▲0.0047.24 ▼5.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.67 ▼16.25
Media Library /wp-admin/upload.php3.23 ▲0.0034.91 ▼2.80

Server storage [IO: ▲0.03MB] [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
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Post Status Dashboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12113.43 ▼0.974.53 ▲2.7943.93 ▼1.83
Dashboard /wp-admin2,270 ▲825.85 ▲0.98100.32 ▼12.2542.73 ▲3.61
Posts /wp-admin/edit.php2,092 ▲62.06 ▲0.0639.16 ▼0.0833.58 ▼2.94
Add New Post /wp-admin/post-new.php1,542 ▲1418.64 ▲0.37614.40 ▼31.9149.54 ▼3.26
Media Library /wp-admin/upload.php1,391 ▲64.20 ▲0.0998.16 ▼12.7641.95 ▲0.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Error in wp-content/plugins/post-status-dashboard/post-status-dashboard.php+43
    Cannot declare class postStatusDash, because the name is already in use
  • The plugin did not uninstall successfully, leaving 14 files (0.03MB) in the plugin directory
    • (new file) lang/post-status-dashboard-it_IT.po
    • (new file) lang/post-status-dashboard-it_IT.mo
    • (new file) lang/post-status-dashboard-es_ES.po
    • (new file) lang/post-status-dashboard-zh_CN.mo
    • (new file) lang/post-status-dashboard-fr_FR.mo
    • (new file) lang/post-status-dashboard-es_ES.mo
    • (new file) lang/post-status-dashboard-de_DE.po
    • (new file) lang/post-status-dashboard-zh_CN.po
    • (new file) lang/post-status-dashboard-de_DE.mo
    • (new file) lang/post-status-dashboard-fr_FR.po
    • ...
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: panel, admin, type, dash, status...

post-status-dashboard/post-status-dashboard.php Passed 13 tests

This is the main PHP file of "Post Status Dashboard" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
50 characters long description:
Used to display post status in the admin dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected450 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP24981255
PO File55565195

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity7.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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
PNG images were not found in this plugin