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
This plugin's installer ran successfully
Server metrics [RAM: ▲1.45MB] [CPU: ▲10.11ms] Passed 4 tests
This is a short check of server-side resources used by Cool Responsive Megamenu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 34.96 ▼6.79 |
Dashboard /wp-admin | 5.14 ▲1.80 | 60.68 ▲3.24 |
Posts /wp-admin/edit.php | 5.25 ▲1.90 | 69.30 ▲23.54 |
Add New Post /wp-admin/post-new.php | 7.72 ▲1.83 | 131.01 ▲37.15 |
Media Library /wp-admin/upload.php | 5.04 ▲1.81 | 52.36 ▲20.46 |
Settings /wp-admin/admin.php?page=crmm-settings | 5.04 | 46.65 |
Server storage [IO: ▲3.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 67 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
crmm_media_post_ID |
can_compress_scripts |
theysaidso_admin_options |
cool_megamenu_settings |
cool_megamenu |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Cool Responsive Megamenu
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,081 ▲310 | 15.79 ▲1.04 | 9.46 ▲7.48 | 47.83 ▲4.22 |
Dashboard /wp-admin | 2,398 ▲207 | 7.02 ▲2.12 | 144.14 ▲41.57 | 41.23 ▼1.27 |
Posts /wp-admin/edit.php | 2,304 ▲212 | 3.85 ▲1.83 | 53.46 ▲11.64 | 33.42 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,561 ▲47 | 23.57 ▲6.02 | 649.18 ▼25.77 | 36.92 ▼9.51 |
Media Library /wp-admin/upload.php | 1,437 ▲55 | 4.65 ▲0.45 | 85.98 ▼12.76 | 39.99 ▼6.82 |
Settings /wp-admin/admin.php?page=crmm-settings | 1,226 | 3.83 | 49.75 | 42.99 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- cool_megamenu_settings
- db_upgraded
- cool_megamenu
- crmm_media_post_ID
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 11× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/cool-responsive-mega-menu/includes/crmm-functions.php
- > /wp-content/plugins/cool-responsive-mega-menu/admin/crmm-functions-settings-page.php
- > /wp-content/plugins/cool-responsive-mega-menu/admin/crmm-functions-option-types.php
- > /wp-content/plugins/cool-responsive-mega-menu/templates/crmm-card.php
- > /wp-content/plugins/cool-responsive-mega-menu/admin/crmm-cleanup-api.php
- > /wp-content/plugins/cool-responsive-mega-menu/admin/crmm-functions-docs-page.php
- > /wp-content/plugins/cool-responsive-mega-menu/admin/crmm-functions-admin.php
- > /wp-content/plugins/cool-responsive-mega-menu/admin/crmm-functions-compat.php
- > /wp-content/plugins/cool-responsive-mega-menu/cool-responsive-mega-menu.php
- > /wp-content/plugins/cool-responsive-mega-menu/admin/crmm-settings-api.php
- 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/cool-responsive-mega-menu/templates/crmm-loop.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cool-responsive-mega-menu/includes/crmm_edit_custom_walker.php:9
- > PHP Notice
Undefined property: stdClass::$title in wp-content/plugins/cool-responsive-mega-menu/templates/crmm-card.php on line 3
- > PHP Notice
Undefined variable: title in wp-content/plugins/cool-responsive-mega-menu/templates/crmm-card.php on line 12
- > PHP Notice
Undefined variable: posts in wp-content/plugins/cool-responsive-mega-menu/templates/crmm-image.php on line 2
- > PHP Notice
Undefined variable: title in wp-content/plugins/cool-responsive-mega-menu/templates/crmm-card.php on line 6
- > PHP Notice
Undefined variable: posts in wp-content/plugins/cool-responsive-mega-menu/templates/crmm-shortcode.php on line 3
- > PHP Notice
Trying to get property 'cool_megamenu_args' of non-object in wp-content/plugins/cool-responsive-mega-menu/templates/crmm-gallery.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/cool-responsive-mega-menu/templates/crmm-gallery.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cool-responsive-mega-menu/admin/cool-options.php:5
- > 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 on the user side
Optimizations
Plugin configuration 93% 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 to be fixed:
- Donate link: Invalid URI ("")
cool-responsive-mega-menu/cool-responsive-mega-menu.php 92% from 13 tests
This is the main PHP file of "Cool Responsive Megamenu" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin24,042 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 3,887 | 3,683 | 8,100 |
CSS | 6 | 1,871 | 323 | 7,754 |
Sass | 3 | 1,032 | 2 | 4,221 |
SVG | 2 | 0 | 0 | 2,959 |
JavaScript | 6 | 172 | 101 | 1,008 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 46.14 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 148.00 |
Average method complexity | 5.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.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 | 74 | |
▷ Static methods | 2 | 2.70% |
▷ Public methods | 66 | 89.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 10.81% |
Functions | 217 | |
▷ Named functions | 217 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 26 | 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
14 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 13.21KB | 7.28KB | ▼ 44.87% |
assets/screenshot-2.png | 31.45KB | 14.90KB | ▼ 52.63% |
assets/images/layout/right-sidebar.png | 3.90KB | 2.09KB | ▼ 46.42% |
assets/images/crmm-select-rtl.png | 1.02KB | 0.14KB | ▼ 85.96% |
assets/images/crmm-select-hover-rtl.png | 1.02KB | 0.14KB | ▼ 85.91% |