Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼302.82ms] Passed 4 tests
Analyzing server-side resources used by Accordion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.97 ▲0.46 | 67.46 ▲13.07 |
Dashboard /wp-admin | 3.83 ▲0.43 | 64.33 ▼39.21 |
Posts /wp-admin/edit.php | 4.06 ▲0.41 | 45.78 ▼2.79 |
Add New Post /wp-admin/post-new.php | 7.37 ▲0.40 | 101.46 ▼1,169.08 |
Media Library /wp-admin/upload.php | 3.78 ▲0.49 | 31.65 ▼0.20 |
Add New Accordion /wp-admin/post-new.php?post_type=accordion_tp | 4.06 | 56.88 |
Accordion Pro Features /wp-admin/options-general.php?page=accordion-free-features | 3.75 | 31.78 |
Help & Support /wp-admin/edit.php?post_type=accordion_tp&page=support | 3.76 | 43.36 |
All Accordions /wp-admin/edit.php?post_type=accordion_tp | 3.83 | 30.83 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 71 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Accordion
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,971 ▲217 | 16.82 ▲1.20 | 9.44 ▲3.54 | 2.20 ▼0.76 |
Dashboard /wp-admin | 2,950 ▲89 | 6.82 ▲0.55 | 119.45 ▼20.43 | 170.34 ▲4.33 |
Posts /wp-admin/edit.php | 2,720 ▲29 | 3.04 ▼0.20 | 68.42 ▼27.51 | 210.56 ▲61.46 |
Add New Post /wp-admin/post-new.php | 1,706 ▲68 | 16.41 ▼6.02 | 406.17 ▼59.26 | 198.77 ▲40.80 |
Media Library /wp-admin/upload.php | 1,756 ▲58 | 5.95 ▲0.41 | 160.23 ▲23.39 | 209.69 ▲26.58 |
Add New Accordion /wp-admin/post-new.php?post_type=accordion_tp | 3,981 | 8.03 | 181.44 | 360.98 |
Accordion Pro Features /wp-admin/options-general.php?page=accordion-free-features | 1,447 | 2.86 | 57.09 | 178.71 |
Help & Support /wp-admin/edit.php?post_type=accordion_tp&page=support | 1,113 | 2.98 | 58.02 | 128.35 |
All Accordions /wp-admin/edit.php?post_type=accordion_tp | 1,445 | 3.53 | 99.75 | 124.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 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× 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/accordions-wp/metabox/classes.fields.php:581
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accordions-wp/metabox/example-functions.php:104
- > 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 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_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 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: responsive accordions, responsive accordions plugin, jquery accordions, accordion, accordions shortcode...
accordions-wp/custom-accordion-wp.php 85% from 13 tests
The main PHP script in "Accordion" version 2.6 is automatically included on every request by WordPress
Please take the time to fix the following:
- 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")
- Description: Please don't use more than 140 characters for the plugin description (currently 233 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous 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
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
css/minus_icon.png | 1.02KB | 0.15KB | ▼ 84.96% |
css/plus_icon_shadow.png | 1.00KB | 0.13KB | ▼ 87.35% |
metabox/js/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
metabox/css/vendor/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |