Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼5.26ms] Passed 4 tests
Server-side resources used by Automatic Hx Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 42.98 ▲5.65 |
Dashboard /wp-admin | 3.58 ▲0.28 | 50.50 ▲3.16 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 46.08 ▼6.66 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 81.34 ▼18.11 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.22 ▲0.59 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
automatichxmenu_options |
Browser metrics Passed 4 tests
Automatic Hx Menu: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲166 | 13.63 ▼0.74 | 8.51 ▲6.75 | 41.29 ▼1.46 |
Dashboard /wp-admin | 2,206 ▲21 | 5.87 ▼0.03 | 112.05 ▲10.08 | 85.89 ▲43.81 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.01 ▼0.04 | 33.37 ▼11.41 | 32.25 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,680 ▲166 | 22.35 ▲4.88 | 756.19 ▲84.66 | 63.40 ▼2.42 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.15 ▼0.13 | 108.76 ▼2.30 | 43.90 ▼2.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- automatichxmenu_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 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 following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatic-hx-menu/automatichxmenu.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: automatic, h1, button, links, menu generator...
automatic-hx-menu/automatichxmenu.php 85% from 13 tests
This is the main PHP file of "Automatic Hx Menu" version 2.7.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("automatic-hx-menu.php" instead of "automatichxmenu.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin1,745 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 132 | 86 | 1,080 |
PO File | 1 | 125 | 141 | 303 |
Sass | 2 | 24 | 0 | 180 |
CSS | 4 | 1 | 10 | 147 |
JavaScript | 2 | 5 | 0 | 35 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 6.96KB | 2.96KB | ▼ 57.43% |
img/logo_plugin.png | 3.64KB | 1.78KB | ▼ 51.09% |
img/logo_small.png | 1.00KB | 0.10KB | ▼ 89.58% |