Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼289.66ms] 75% from 4 tests
A check of server-side resources used by Accordion & FAQs
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 738.50ms on /wp-admin/admin.php?page=cldzr_more_freeplugs)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 57.36 ▲6.95 |
Dashboard /wp-admin | 3.58 ▲0.17 | 35.15 ▲1.57 |
Posts /wp-admin/edit.php | 3.81 ▲0.16 | 38.49 ▲0.40 |
Add New Post /wp-admin/post-new.php | 7.05 ▲0.08 | 92.22 ▼1,164.52 |
Media Library /wp-admin/upload.php | 3.46 ▲0.16 | 26.70 ▲3.93 |
All Accordion Box /wp-admin/admin.php?page=cdlzr_acc_box | 3.43 | 23.05 |
Upgrade To Pro /wp-admin/admin.php?page=accbox_upgpro | 3.44 | 23.39 |
Free vs Pro /wp-admin/admin.php?page=cldzr_freediffpro | 3.45 | 24.41 |
Add Accordion /wp-admin/post-new.php?post_type=cdlzr_accrodion_box | 3.79 | 39.52 |
More Free Plugins /wp-admin/admin.php?page=cldzr_more_freeplugs | 3.52 | 738.50 |
Server storage [IO: ▲3.91MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 68 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Accordion & FAQs
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,845 ▲91 | 15.29 ▼0.42 | 7.07 ▲1.18 | 3.69 ▲0.98 |
Dashboard /wp-admin | 2,944 ▲86 | 6.25 ▲0.03 | 117.21 ▼17.08 | 172.29 ▲7.81 |
Posts /wp-admin/edit.php | 2,750 ▲56 | 3.24 ▲0.00 | 64.92 ▲1.73 | 145.61 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,762 ▲101 | 23.12 ▲5.88 | 428.40 ▲21.78 | 162.90 ▲0.68 |
Media Library /wp-admin/upload.php | 1,768 ▲70 | 5.55 ▲0.04 | 129.28 ▼17.71 | 215.89 ▲24.42 |
All Accordion Box /wp-admin/admin.php?page=cdlzr_acc_box | 2,136 | 3.91 | 73.03 | 133.72 |
Upgrade To Pro /wp-admin/admin.php?page=accbox_upgpro | 1,236 | 2.39 | 57.35 | 163.67 |
Free vs Pro /wp-admin/admin.php?page=cldzr_freediffpro | 1,333 | 2.38 | 57.43 | 167.53 |
Add Accordion /wp-admin/post-new.php?post_type=cdlzr_accrodion_box | 3,332 | 8.28 | 179.50 | 370.37 |
More Free Plugins /wp-admin/admin.php?page=cldzr_more_freeplugs | 1,871 | 2.38 | 59.59 | 171.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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 50% from 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
Please fix the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/accordion-box/admin/ourfreeplugs.php:41
- > PHP Warning
include(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/accordion-box/admin/ourfreeplugs.php on line 30
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/accordion-box/admin/ourfreeplugs.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accordion-box/admin/freediffpro.php:18
- > PHP Warning
include(): Failed opening 'ABSPATHwp-admin/includes/plugin-install.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/accordion-box/admin/ourfreeplugs.php on line 30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=cdlzr_accrodion_box
- > Network (severe)
wp-content/plugins/accordion-box/admin/assets/images/freeone.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% 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 require attention:
- Screenshots: These screenshots lack descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in accordion-box/assets to your readme.txt
- Tags: Please delete some tags, you are using 32 tag instead of maximum 10
accordion-box/accordion-box.php 85% from 13 tests
The main PHP file in "Accordion & FAQs" ver. 2.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 300 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected13,991 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,445 |
CSS | 12 | 464 | 73 | 2,753 |
PHP | 17 | 163 | 78 | 1,523 |
JavaScript | 8 | 75 | 138 | 270 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 36 | |
▷ Static methods | 26 | 72.22% |
▷ Public methods | 34 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.56% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.64MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/style1.PNG | 47.88KB | 48.22KB | 0.00% |
admin/assets/images/freeone.PNG | 99.91KB | 31.09KB | ▼ 68.88% |
public/assets/images/icon-plus.png | 0.34KB | 0.17KB | ▼ 49.71% |
public/assets/images/arrow.png | 3.18KB | 0.53KB | ▼ 83.44% |
admin/assets/images/style5.PNG | 65.30KB | 28.73KB | ▼ 56.00% |