Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.78MB] [CPU: ▲0.28ms] Passed 4 tests
Server-side resources used by Pyxis - Responsive, Mobile-Friendly Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.51 | 49.26 ▲4.27 |
Dashboard /wp-admin | 4.22 ▲0.92 | 54.62 ▲5.56 |
Posts /wp-admin/edit.php | 4.24 ▲0.89 | 55.73 ▼0.09 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.86 | 91.71 ▼8.61 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 52.42 ▲16.75 |
Pyxis Mobile Menu /wp-admin/options-general.php?page=pyxis_plugin_options | 4.43 | 44.95 |
Server storage [IO: ▲3.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 387 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pyxis - Responsive, Mobile-Friendly Menu
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲195 | 13.74 ▼0.40 | 6.43 ▲4.57 | 50.97 ▲6.45 |
Dashboard /wp-admin | 2,218 ▲30 | 5.08 ▼0.82 | 108.70 ▲2.83 | 41.23 ▲1.66 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.10 ▲0.11 | 37.32 ▼2.71 | 34.24 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,524 ▼9 | 23.53 ▲0.43 | 654.29 ▼1.94 | 55.73 ▲4.41 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.33 ▲0.11 | 107.39 ▲7.07 | 44.36 ▲1.97 |
Pyxis Mobile Menu /wp-admin/options-general.php?page=pyxis_plugin_options | 961 | 1.77 | 26.33 | 29.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/pyxis-mobile-menu/vendor/CMB2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/pyxis-mobile-menu/vendor/CMB2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function has_nav_menu() in wp-content/plugins/pyxis-mobile-menu/templates/menu.php:8
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/pyxis-mobile-menu/vendor/CMB2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pyxis-mobile-menu/inc/functions.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/pyxis-mobile-menu/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/pyxis-mobile-menu/vendor/CMB2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/pyxis-mobile-menu/vendor/CMB2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/pyxis-mobile-menu/vendor/CMB2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/pyxis-mobile-menu/vendor/CMB2/includes/types/CMB2_Type_Colorpicker.php:13
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: navigation, tablet menu, mobile, off-canvas, hamburger menu...
pyxis-mobile-menu/pyxis-mobile-menu.php Passed 13 tests
Analyzing the main PHP file in "Pyxis - Responsive, Mobile-Friendly Menu" version 1.1.3
49 characters long description:
A responsive mobile menu for your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin56,025 lines of code in 240 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 71 | 2,490 | 7,145 | 8,488 |
JSON | 2 | 0 | 0 | 6,602 |
CSS | 15 | 258 | 1,196 | 4,832 |
JavaScript | 12 | 421 | 588 | 1,657 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 2 | 230 | 0 | 711 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of 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.45 |
Average class complexity | 17.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 9 | 11.84% |
▷ Concrete classes | 67 | 88.16% |
▷ Final classes | 6 | 8.96% |
Methods | 605 | |
▷ Static methods | 111 | 18.35% |
▷ Public methods | 504 | 83.31% |
▷ Protected methods | 89 | 14.71% |
▷ Private methods | 12 | 1.98% |
Functions | 55 | |
▷ Named functions | 49 | 89.09% |
▷ Anonymous functions | 6 | 10.91% |
Constants | 16 | |
▷ Global constants | 10 | 62.50% |
▷ Class constants | 6 | 37.50% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/CMB2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/CMB2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/CMB2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |