Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.18ms] Passed 4 tests
Server-side resources used by Accordion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.35 ▲1.11 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.15 ▼1.53 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 44.90 ▼4.47 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.13 ▼8.71 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.34 ▼1.99 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_postaccordionpanel |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Accordion: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲190 | 13.54 ▼0.82 | 5.40 ▲3.67 | 43.77 ▲2.80 |
Dashboard /wp-admin | 2,216 ▲28 | 4.86 ▼1.04 | 98.47 ▼13.08 | 41.05 ▼3.67 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.01 ▼0.05 | 35.16 ▼5.31 | 36.13 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,526 ▲7 | 22.87 ▼0.49 | 636.07 ▲3.99 | 63.89 ▲10.75 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.21 ▼0.02 | 95.59 ▼7.39 | 42.78 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_postaccordionpanel
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #17, #18, #19, #20, #21 in category-and-post-accordion-panel/assets to your readme.txt
category-and-post-accordion-panel/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Accordion" version 2.0
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("category-and-post-accordion-panel.php" instead of "plugin.php")
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
Success! There were no dangerous files found in this plugin1,187 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 182 | 342 | 776 |
JavaScript | 2 | 16 | 2 | 171 |
CSS | 2 | 9 | 12 | 126 |
PO File | 1 | 49 | 0 | 114 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/no-img.png | 3.66KB | 0.88KB | ▼ 76.05% |
assets/images/ac_open.png | 0.30KB | 0.19KB | ▼ 35.41% |
assets/images/searchicon.png | 0.80KB | 0.82KB | 0.00% |
assets/images/cart.png | 0.48KB | 0.47KB | ▼ 1.84% |
assets/images/ac_close.png | 0.27KB | 0.17KB | ▼ 34.80% |