83% wp-management-tool-by-hardy-code

Code Review | WordPress Management Tool by Hardy Code

WordPress plugin WordPress Management Tool by Hardy Code scored83%from 54 tests.

About plugin

  • Plugin page: wp-management-too...
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.8
  • WordPress version: 6.3.1
  • First release: Dec 29, 2013
  • Latest release: Jan 5, 2014
  • Number of updates: 12
  • Update frequency: every 0.6 days
  • Top authors: bomberaza (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /782 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼4.23ms] Passed 4 tests

Server-side resources used by WordPress Management Tool by Hardy Code
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.51 ▲3.10
Dashboard /wp-admin3.32 ▲0.0149.66 ▼0.36
Posts /wp-admin/edit.php3.37 ▲0.0150.31 ▼2.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.90 ▼16.85
Media Library /wp-admin/upload.php3.24 ▲0.0139.40 ▲3.57
WPMT /wp-admin/plugins.php?page=wordpress-management-tool3.2432.83

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_recent-posts
HC_WPMT_KEY
HC_WPMT_REMOTE_STATUS
HC_WPMT_PLUGIN_URL
theysaidso_admin_options
can_compress_scripts
HC_WPMT_STATUS
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Management Tool by Hardy Code
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.071.69 ▼0.0344.57 ▲0.81
Dashboard /wp-admin2,202 ▲255.58 ▼0.0693.78 ▲3.0141.79 ▼4.82
Posts /wp-admin/edit.php2,101 ▲12.01 ▼0.0236.10 ▼4.5333.59 ▼7.62
Add New Post /wp-admin/post-new.php1,529 ▲323.38 ▼0.20667.49 ▼10.7751.68 ▼15.67
Media Library /wp-admin/upload.php1,404 ▲14.30 ▲0.09107.90 ▲0.3147.01 ▲0.26
WPMT /wp-admin/plugins.php?page=wordpress-management-tool8751.9725.3534.31

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 10 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • HC_WPMT_STATUS
    • HC_WPMT_PLUGIN_URL
    • widget_recent-posts
    • HC_WPMT_REMOTE_STATUS
    • HC_WPMT_KEY
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'API' not found in wp-content/plugins/wp-management-tool-by-hardy-code/templates/page.php:16
    • > PHP Warning
      Use of undefined constant PAGE_TITLE - assumed 'PAGE_TITLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-management-tool-by-hardy-code/templates/page.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-management-tool-by-hardy-code/index.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: You can look at the official readme.txt

wp-management-tool-by-hardy-code/index.php 85% from 13 tests

The principal PHP file in "WordPress Management Tool by Hardy Code" v. 0.0.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-management-tool-by-hardy-code.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 291 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin583 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9294348544
Markdown120039

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.27
Average class complexity10.00
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods47
▷ Static methods47100.00%
▷ Public methods47100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.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
There were not PNG files found in your plugin