Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.81MB] [CPU: ▲2.31ms] Passed 4 tests
Server-side resources used by Accordion Plugin by Themes Awesome
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.56 ▲2.10 | 67.40 ▲19.53 |
Dashboard /wp-admin | 5.40 ▲2.06 | 73.94 ▲8.28 |
Posts /wp-admin/edit.php | 5.45 ▲2.09 | 75.78 ▲21.66 |
Add New Post /wp-admin/post-new.php | 6.92 ▲1.03 | 65.90 ▼37.74 |
Media Library /wp-admin/upload.php | 5.30 ▲2.08 | 56.67 ▲19.18 |
All Accordions /wp-admin/edit.php?post_type=accordion-awesome | 5.37 | 58.68 |
Add New /wp-admin/post-new.php?post_type=accordion-awesome | 5.49 | 72.68 |
Server storage [IO: ▲10.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 570 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Accordion Plugin by Themes Awesome
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,204 ▲458 | 19.00 ▲4.62 | 5.53 ▲3.75 | 37.91 ▼15.41 |
Dashboard /wp-admin | 2,530 ▲342 | 9.29 ▲3.47 | 191.97 ▲81.50 | 39.44 ▼2.28 |
Posts /wp-admin/edit.php | 2,460 ▲371 | 6.13 ▲4.10 | 76.88 ▲41.50 | 32.62 ▼2.43 |
Add New Post /wp-admin/post-new.php | 6,264 ▲4,745 | 22.16 ▼1.40 | 1,000.73 ▲343.30 | 50.10 ▲2.45 |
Media Library /wp-admin/upload.php | 1,606 ▲218 | 6.64 ▲2.37 | 110.71 ▲5.40 | 45.05 ▼5.56 |
All Accordions /wp-admin/edit.php?post_type=accordion-awesome | 1,441 | 6.11 | 79.98 | 27.78 |
Add New /wp-admin/post-new.php?post_type=accordion-awesome | 2,640 | 11.82 | 232.24 | 42.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 139× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Service/Revisions_Service.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Custom_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Field/Color_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Service/Meta_Query_Service.php:12
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Datastore/Empty_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/accordion-awesome/vendor/ynacorp/carbon-field-uniqid/core/UniqID_Field.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Field/Scripts_Field.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordion-awesome/accordion-awesome-post-type.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: faq, vertical accordion, accordion
accordion-awesome/accordion-awesome.php Passed 13 tests
This is the main PHP file of "Accordion Plugin by Themes Awesome" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
26 characters long description:
WordPress Accordion Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin45,568 lines of code in 487 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 19 | 3,372 | 1,751 | 16,282 |
JavaScript | 193 | 5,558 | 9,044 | 14,279 |
PHP | 184 | 2,896 | 7,281 | 10,396 |
Sass | 51 | 367 | 0 | 1,936 |
PO File | 21 | 614 | 783 | 1,673 |
JSON | 12 | 0 | 0 | 797 |
Markdown | 6 | 52 | 0 | 162 |
SVG | 1 | 0 | 0 | 43 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 27 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 137 | |
▷ Abstract classes | 11 | 8.03% |
▷ Concrete classes | 126 | 91.97% |
▷ Final classes | 1 | 0.79% |
Methods | 973 | |
▷ Static methods | 102 | 10.48% |
▷ Public methods | 794 | 81.60% |
▷ Protected methods | 169 | 17.37% |
▷ Private methods | 10 | 1.03% |
Functions | 136 | |
▷ Named functions | 45 | 33.09% |
▷ Anonymous functions | 91 | 66.91% |
Constants | 39 | |
▷ Global constants | 14 | 35.90% |
▷ Class constants | 25 | 64.10% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/prev.png | 3.22KB | 0.41KB | ▼ 87.13% |
public/img/arrow_down.png | 1.06KB | 0.24KB | ▼ 77.47% |
public/img/next.png | 3.23KB | 0.42KB | ▼ 87.06% |
public/img/arrow_up.png | 1.03KB | 0.23KB | ▼ 77.65% |
public/img/down.png | 2.97KB | 0.13KB | ▼ 95.76% |