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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼7.38ms] Passed 4 tests
An overview of server-side resources used by Accordeon Menu CK
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 44.05 ▲2.19 |
Dashboard /wp-admin | 3.48 ▲0.18 | 50.33 ▼5.78 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 54.54 ▲4.17 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 86.93 ▼12.91 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.71 ▼13.01 |
All Styles /wp-admin/admin.php?page=accordeonmenuck_general | 3.60 | 34.43 |
Add New /wp-admin/admin.php?page=accordeonmenuck_edit_style | 3.60 | 32.85 |
Server storage [IO: ▲1.55MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 71 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_accordeonmenuck_styles |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_accordeon-menu-ck |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Accordeon Menu CK
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲187 | 14.15 ▼0.22 | 5.56 ▲3.76 | 38.38 ▼5.79 |
Dashboard /wp-admin | 2,253 ▲50 | 5.82 ▼0.10 | 106.20 ▲2.13 | 79.64 ▲37.21 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 1.97 ▼0.04 | 40.63 ▲1.48 | 37.93 ▲5.96 |
Add New Post /wp-admin/post-new.php | 1,704 ▲300 | 21.90 ▲3.57 | 749.41 ▲119.90 | 44.16 ▼1.02 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.19 ▼0.07 | 102.16 ▼20.00 | 67.07 ▲16.44 |
All Styles /wp-admin/admin.php?page=accordeonmenuck_general | 1,057 | 2.09 | 25.47 | 52.06 |
Add New /wp-admin/admin.php?page=accordeonmenuck_edit_style | 3,730 | 3.74 | 60.95 | 67.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_accordeonmenuck_styles
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_accordeon-menu-ck
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 0% 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
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=accordeonmenuck_edit_style
- > POST request to /wp-admin/admin.php?page=accordeonmenuck_edit_style&task=style.ajaxRenderCss&CKTOKEN=2d9890d39c
- > Deprecated in wp-content/plugins/accordeon-menu-ck/helpers/ckpath.php+151
Array and string offset access syntax with curly braces is deprecated
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=accordeonmenuck_edit_style
- > POST request to /wp-admin/admin.php?page=accordeonmenuck_edit_style&task=style.ajaxRenderCss&CKTOKEN=2d9890d39c
- > Deprecated in wp-content/plugins/accordeon-menu-ck/helpers/ckstyles.php+397
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- > GET request to /wp-admin/admin.php?page=accordeonmenuck_edit_style
- > POST request to /wp-admin/admin.php?page=accordeonmenuck_edit_style&task=style.ajaxRenderCss&CKTOKEN=2d9890d39c
- > Notice in wp-content/plugins/accordeon-menu-ck/controllers/style.php+108
Undefined variable: level12magewidth
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/accordeon-menu-ck/interfaces/rendercss.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
require_once(ACCORDEONMENUCK_PATH/helpers/walker-nav-menu.php): failed to open stream: No such file or directory in wp-content/plugins/accordeon-menu-ck/helpers/widget.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'Accordeonmenuck\\CKListTable' not found in wp-content/plugins/accordeon-menu-ck/helpers/cklisttablestyle.php:20
- > PHP Warning
Use of undefined constant ACCORDEONMENUCK_PATH - assumed 'ACCORDEONMENUCK_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/accordeon-menu-ck/helpers/widget.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ACCORDEONMENUCK_PATH/helpers/walker-nav-menu.php' (include_path='.:/usr/share/php') in wp-content/plugins/accordeon-menu-ck/helpers/widget.php on line 8
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=accordeonmenuck_edit_style
- > Network (severe)
wp-content/plugins/accordeon-menu-ck/assets/jscolor/jscolor.css - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: jquery, accordion, menu
accordeon-menu-ck/accordeon-menu-ck.php Passed 13 tests
"Accordeon Menu CK" version 1.1.10's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
Accordeon Menu CK shows an accordion menu in any sidebar position with multiple settings.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/accordeon-menu-ck/assets/jscolor/Demos of JSColor.URL
- .url - Internet Shortcut in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,104 | 2,419 | 5,364 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 6 | 204 | 222 | 1,498 |
CSS | 4 | 180 | 85 | 1,356 |
PO File | 1 | 272 | 495 | 446 |
HTML | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 277)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 35.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 344.00 |
Average method complexity | 5.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 277.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 1 | 3.70% |
▷ Concrete classes | 26 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 226 | |
▷ Static methods | 66 | 29.20% |
▷ Public methods | 200 | 88.50% |
▷ Protected methods | 9 | 3.98% |
▷ Private methods | 17 | 7.52% |
Functions | 7 | |
▷ Named functions | 3 | 42.86% |
▷ Anonymous functions | 4 | 57.14% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
images/white_minus_11x12.png | 0.14KB | 0.08KB | ▼ 43.54% |
images/admin_menu.png | 0.42KB | 0.46KB | 0.00% |
images/white_plus_11x12.png | 0.21KB | 0.15KB | ▼ 29.38% |
assets/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |