Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in archivesPostAccordionWidget is deprecated since version 4.3.0! Use __construct() instead.
Server metrics [RAM: ▼1.93MB] [CPU: ▼52.53ms] Passed 4 tests
Analyzing server-side resources used by Archive Posts Accordion Panel
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.11 ▼43.03 |
Dashboard /wp-admin | 2.07 ▼1.23 | 7.40 ▼41.08 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 9.59 ▼36.05 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 5.78 ▼89.96 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 8.20 ▼27.12 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_archivespostaccordionadmin |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Archive Posts Accordion Panel
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲165 | 13.60 ▼0.79 | 6.80 ▲4.89 | 38.82 ▼7.58 |
Dashboard /wp-admin | 2,207 ▲22 | 4.90 ▼0.94 | 113.19 ▲15.98 | 42.05 ▲5.70 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.00 ▼0.03 | 39.77 ▲0.83 | 34.08 ▲3.10 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 18.25 ▲0.52 | 629.93 ▼13.03 | 57.48 ▲8.71 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.17 ▲0.01 | 92.46 ▼3.48 | 42.18 ▲0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in archivesPostAccordionWidget is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure has failed, leaving 7 options in the database
- widget_archivespostaccordionadmin
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
archive-posts-accordion-panel/plugin.php 92% from 13 tests
The main PHP file in "Archive Posts Accordion Panel" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("archive-posts-accordion-panel.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,234 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 166 | 355 | 832 |
JavaScript | 2 | 16 | 2 | 164 |
PO File | 1 | 52 | 0 | 122 |
CSS | 2 | 11 | 12 | 116 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.23 |
▷ 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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 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
10 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/ac2_open.png | 0.52KB | 0.58KB | 0.00% |
assets/images/ac_close.png | 0.27KB | 0.17KB | ▼ 34.80% |
assets/images/ac_open.png | 0.30KB | 0.19KB | ▼ 35.41% |
assets/images/searchicon.png | 0.80KB | 0.82KB | 0.00% |
assets/images/ac_bottom.png | 0.28KB | 0.27KB | ▼ 5.54% |