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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.51 ▲3.10 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.66 ▼0.36 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.31 ▼2.80 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.90 ▼16.85 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.40 ▲3.57 |
WPMT /wp-admin/plugins.php?page=wordpress-management-tool | 3.24 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.07 | 1.69 ▼0.03 | 44.57 ▲0.81 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▼0.06 | 93.78 ▲3.01 | 41.79 ▼4.82 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.01 ▼0.02 | 36.10 ▼4.53 | 33.59 ▼7.62 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.38 ▼0.20 | 667.49 ▼10.77 | 51.68 ▼15.67 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.30 ▲0.09 | 107.90 ▲0.31 | 47.01 ▲0.26 |
WPMT /wp-admin/plugins.php?page=wordpress-management-tool | 875 | 1.97 | 25.35 | 34.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
- > PHP Fatal error
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:
- Screenshots: These screenshots need descriptions #2, #3, #4 in wp-management-tool-by-hardy-code/assets to your 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 294 | 348 | 544 |
Markdown | 1 | 20 | 0 | 39 |
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 code | 0.27 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 47 | 100.00% |
▷ Public methods | 47 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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