Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.35MB] [CPU: ▼12.62ms] Passed 4 tests
An overview of server-side resources used by WordPress Accordion
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.87 ▼35.53 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.18 ▼3.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.22 ▼2.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 79.54 ▼9.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.79 ▲0.75 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Accordion
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲154 | 13.81 ▼0.39 | 5.76 ▲3.68 | 42.36 ▼6.01 |
Dashboard /wp-admin | 2,206 ▲24 | 5.88 ▲0.06 | 97.49 ▼8.16 | 37.87 ▼6.26 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.04 | 34.14 ▼4.39 | 33.73 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.24 ▼0.01 | 671.88 ▼19.53 | 51.93 ▼4.96 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▼0.01 | 95.14 ▼0.69 | 42.49 ▼4.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-collapse-accordion/easy-accordion.php:29
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: bootstrap, responsive, accordion
easy-collapse-accordion/easy-accordion.php 92% from 13 tests
The primary PHP file in "WordPress Accordion" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-collapse-accordion.php" instead of "easy-accordion.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin905 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 2 | 9 | 416 |
SVG | 1 | 0 | 0 | 229 |
JavaScript | 4 | 14 | 9 | 92 |
PHP | 1 | 33 | 24 | 72 |
HTML | 1 | 21 | 0 | 64 |
Markdown | 1 | 11 | 0 | 32 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/easy-accordion.png | 0.42KB | 0.90KB | 0.00% |