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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼294.40ms] Passed 4 tests
Analyzing server-side resources used by Accordion
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.19 | 56.67 ▲3.74 |
Dashboard /wp-admin | 3.54 ▲0.13 | 33.16 ▼0.51 |
Posts /wp-admin/edit.php | 3.77 ▲0.13 | 39.70 ▼0.21 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.04 | 93.56 ▼1,176.77 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 24.16 ▼0.09 |
Settings /wp-admin/edit.php?post_type=accordions&page=settings | 3.47 | 25.17 |
All Accordions /wp-admin/edit.php?post_type=accordions | 3.52 | 26.24 |
Add New /wp-admin/post-new.php?post_type=accordions | 3.86 | 41.51 |
Server storage [IO: ▲4.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_widget_accordions |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Accordion
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,954 ▲200 | 16.24 ▲0.47 | 9.98 ▲4.53 | 2.63 ▼0.18 |
Dashboard /wp-admin | 2,938 ▲77 | 6.29 ▲0.10 | 113.77 ▼16.31 | 154.71 ▼8.24 |
Posts /wp-admin/edit.php | 2,737 ▲52 | 3.26 ▲0.01 | 63.41 ▼2.69 | 136.49 ▼19.49 |
Add New Post /wp-admin/post-new.php | 1,698 ▲37 | 18.21 ▲2.05 | 404.91 ▼13.09 | 156.91 ▲1.42 |
Media Library /wp-admin/upload.php | 1,748 ▲47 | 5.58 ▲0.04 | 135.41 ▼1.09 | 178.78 ▼14.34 |
Settings /wp-admin/edit.php?post_type=accordions&page=settings | 3,412 | 6.00 | 137.07 | 123.61 |
All Accordions /wp-admin/edit.php?post_type=accordions | 1,387 | 3.17 | 64.71 | 117.50 |
Add New /wp-admin/post-new.php?post_type=accordions | 8,028 | 9.74 | 223.07 | 154.89 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- widget_widget_accordions
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #11, #12 in accordions/assets to your readme.txt
- Screenshots: Screenshot #3 (screenshot-3) image required
accordions/accordions.php Passed 13 tests
"Accordion" version 2.2.37's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Fully responsive and mobile ready accordion grid for wordpress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected32,889 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 9,251 |
PHP | 44 | 4,132 | 217 | 8,206 |
CSS | 9 | 2,414 | 121 | 8,139 |
JavaScript | 4 | 951 | 966 | 7,293 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 78.89 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 641.00 |
Average method complexity | 12.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 70 | |
▷ Named functions | 70 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
12 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/global/images/bg/dimension.png | 0.54KB | 0.57KB | 0.00% |
assets/frontend/css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
assets/frontend/css/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
assets/frontend/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
assets/frontend/css/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |