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.95MB] [CPU: ▼37.88ms] Passed 4 tests
A check of server-side resources used by HedmanSoft Milestones
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.79 ▼22.58 |
Dashboard /wp-admin | 2.99 ▼0.31 | 25.15 ▼23.16 |
Posts /wp-admin/edit.php | 2.99 ▼0.36 | 24.26 ▼29.79 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 22.97 ▼76.00 |
Media Library /wp-admin/upload.php | 2.99 ▼0.23 | 24.34 ▼11.60 |
HedmanSoft Milestones /wp-admin/options-general.php?page=HedmanSoft_Milestones | 2.99 | 22.72 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
hs_milestones_configuration |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by HedmanSoft Milestones
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲89 | 13.40 ▼0.99 | 2.19 ▼0.57 | 42.24 ▲4.23 |
Dashboard /wp-admin | 2,214 ▲23 | 5.92 ▲1.00 | 113.59 ▲10.86 | 43.32 ▲4.18 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.11 ▲0.11 | 36.15 ▼4.90 | 33.17 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 17.87 ▼5.31 | 696.38 ▲40.52 | 54.40 ▼2.71 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.43 ▲0.24 | 93.71 ▼11.44 | 42.05 ▼2.45 |
HedmanSoft Milestones /wp-admin/options-general.php?page=HedmanSoft_Milestones | 884 | 2.24 | 28.11 | 26.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- hs_milestones_configuration
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=HedmanSoft_Milestones
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=HedmanSoft_Milestones
- > Notice in wp-content/plugins/hedmansoft-milestones/hedmansoft_milestones_admin.php+7
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=HedmanSoft_Milestones
- > Notice in wp-content/plugins/hedmansoft-milestones/hedmansoft_milestones_admin.php+12
Undefined index: hsmilestones_action
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
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hedmansoft-milestones/hedmansoft_milestones_admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hedmansoft-milestones/hedmansoft_milestones.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: milestones
hedmansoft-milestones/hedmansoft_milestones.php 92% from 13 tests
The primary PHP file in "HedmanSoft Milestones" version 1.0 is used by WordPress to initiate all plugin functionality
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 ("hedmansoft-milestones.php" instead of "hedmansoft_milestones.php")
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 plugin961 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 68 | 15 | 536 |
PHP | 2 | 22 | 19 | 424 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected