79% hw-wp-status-manager

Code Review | WP Custom Status Manager

WordPress plugin WP Custom Status Manager scored79%from 54 tests.

About plugin

  • Plugin page: hw-wp-status-manager
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 27, 2019
  • Latest release: Feb 13, 2023
  • Number of updates: 38
  • Update frequency: every 33.3 days
  • Top authors: giangel84 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /1,788 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.43ms] Passed 4 tests

An overview of server-side resources used by WP Custom Status Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1238.83 ▲1.50
Dashboard /wp-admin3.42 ▲0.1245.96 ▼5.50
Posts /wp-admin/edit.php3.47 ▲0.1249.17 ▲4.66
Add New Post /wp-admin/post-new.php6.00 ▲0.1293.97 ▼0.16
Media Library /wp-admin/upload.php3.34 ▲0.1238.16 ▲2.43

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables
wp_hw_wpsm
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
hw_wp_status_manager_ver
db_upgraded

Browser metrics Passed 4 tests

WP Custom Status Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.38 ▲0.021.78 ▲0.2543.97 ▲3.97
Dashboard /wp-admin2,211 ▲315.52 ▼0.1282.66 ▼6.4538.29 ▼3.79
Posts /wp-admin/edit.php2,116 ▲192.02 ▲0.0635.88 ▲1.5334.35 ▼1.94
Add New Post /wp-admin/post-new.php1,539 ▲1123.45 ▲0.25630.90 ▼33.8949.66 ▼7.78
Media Library /wp-admin/upload.php1,419 ▲164.17 ▲0.0897.42 ▼7.0243.41 ▼3.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_hw_wpsm
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • hw_wp_status_manager_ver
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

hw-wp-status-manager/index.php 92% from 13 tests

"WP Custom Status Manager" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("hw-wp-status-manager.php" instead of "index.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
There were no executable files found in this plugin788 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14368650
PO File14647138

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin