Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲0.92ms] Passed 4 tests
A check of server-side resources used by Accordion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 39.48 ▲0.82 |
Dashboard /wp-admin | 3.78 ▲0.48 | 48.48 ▼0.65 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 54.52 ▲0.93 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 95.23 ▲2.57 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 38.60 ▲6.07 |
All Accordions /wp-admin/edit.php?post_type=accordion_tp | 3.75 | 40.01 |
Accordion Pro Features /wp-admin/options-general.php?page=accordion-free-features | 3.61 | 33.25 |
Help & Support /wp-admin/edit.php?post_type=accordion_tp&page=support | 3.62 | 33.49 |
Add New Accordion /wp-admin/post-new.php?post_type=accordion_tp | 3.84 | 51.40 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Accordion
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲187 | 13.86 ▼0.44 | 4.56 ▲2.99 | 37.21 ▼3.17 |
Dashboard /wp-admin | 2,253 ▲65 | 5.16 ▼0.74 | 102.79 ▲0.78 | 72.67 ▲30.69 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.33 ▲0.33 | 38.00 ▲0.71 | 34.84 ▲3.18 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 23.26 ▲4.73 | 690.34 ▲54.43 | 36.75 ▼17.25 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.46 ▲0.27 | 96.11 ▼2.10 | 72.03 ▲28.60 |
All Accordions /wp-admin/edit.php?post_type=accordion_tp | 1,121 | 2.33 | 34.79 | 31.03 |
Accordion Pro Features /wp-admin/options-general.php?page=accordion-free-features | 1,123 | 1.89 | 28.69 | 56.82 |
Help & Support /wp-admin/edit.php?post_type=accordion_tp&page=support | 870 | 2.09 | 28.00 | 26.72 |
Add New Accordion /wp-admin/post-new.php?post_type=accordion_tp | 2,764 | 5.67 | 109.77 | 114.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/accordions-wp/custom-accordion-admin.php
- > /wp-content/plugins/accordions-wp/custom-accordion-wp.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accordions-wp/metabox/example-functions.php:104
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordions-wp/metabox/classes.fields.php:581
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordions-wp/metabox/classes.fields.php:581
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/accordions-wp/metabox/custom-meta-boxes.php on line 46
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/accordions-wp/metabox/custom-meta-boxes.php on line 46
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% 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
6 plugin tags: responsive accordions, jquery accordions, accordions shortcode, accordions, responsive accordions plugin...
accordions-wp/custom-accordion-wp.php 85% from 13 tests
The main file in "Accordion" v. 2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 233 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("accordions-wp.php" instead of "custom-accordion-wp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin7,552 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 325 | 158 | 2,999 |
JavaScript | 11 | 711 | 453 | 2,757 |
PHP | 9 | 787 | 370 | 1,764 |
PO File | 1 | 8 | 10 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 2 | 2.17% |
▷ Public methods | 88 | 95.65% |
▷ Protected methods | 1 | 1.09% |
▷ Private methods | 3 | 3.26% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
26 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
metabox/css/vendor/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
metabox/css/vendor/jquery-ui/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/accordion.png | 1.74KB | 1.03KB | ▼ 40.80% |
css/plus_icon_shadow.png | 1.00KB | 0.13KB | ▼ 87.35% |
metabox/css/vendor/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |