Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼313.52ms] Passed 4 tests
A check of server-side resources used by Accordion Plugin by Themes Awesome
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.59 | 56.35 ▲4.72 |
Dashboard /wp-admin | 3.97 ▲0.56 | 41.05 ▲7.60 |
Posts /wp-admin/edit.php | 4.20 ▲0.56 | 43.08 ▲4.17 |
Add New Post /wp-admin/post-new.php | 6.54 ▼0.46 | 60.79 ▼1,262.31 |
Media Library /wp-admin/upload.php | 3.90 ▲0.60 | 26.06 ▼0.67 |
All Accordions /wp-admin/edit.php?post_type=accordion-awesome | 3.97 | 33.00 |
Add New /wp-admin/post-new.php?post_type=accordion-awesome | 4.22 | 52.69 |
Server storage [IO: ▲10.78MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 570 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Accordion Plugin by Themes Awesome: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,290 ▲548 | 20.99 ▲5.30 | 9.47 ▲3.73 | 2.26 ▼0.29 |
Dashboard /wp-admin | 3,328 ▲470 | 10.63 ▲4.46 | 192.66 ▲58.89 | 168.46 ▲3.82 |
Posts /wp-admin/edit.php | 3,132 ▲441 | 7.81 ▲4.57 | 108.47 ▲43.70 | 139.11 ▼5.40 |
Add New Post /wp-admin/post-new.php | 1,840 ▲129 | 19.47 ▼1.23 | 443.02 ▼0.31 | 157.98 ▲5.37 |
Media Library /wp-admin/upload.php | 1,941 ▲243 | 8.17 ▲2.64 | 137.92 ▼6.36 | 192.92 ▲4.95 |
All Accordions /wp-admin/edit.php?post_type=accordion-awesome | 1,810 | 7.77 | 103.32 | 111.68 |
Add New /wp-admin/post-new.php?post_type=accordion-awesome | 3,366 | 13.81 | 256.83 | 169.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 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 errors when accessed directly with GET requests (only 10 are shown):
- > 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/Rich_Text_Field.php:8
- > PHP Notice
Undefined variable: errors in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Field/Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Boolean_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Widget/Widget.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Widget_Container.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-field-number/core/Number_Field.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Format_Condition.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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, accordion, vertical accordion
accordion-awesome/accordion-awesome.php Passed 13 tests
"Accordion Plugin by Themes Awesome" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
26 characters long description:
WordPress Accordion Plugin
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 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
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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/arrow_up.png | 1.03KB | 0.23KB | ▼ 77.65% |
public/img/down.png | 2.97KB | 0.13KB | ▼ 95.76% |
public/img/next.png | 3.23KB | 0.42KB | ▼ 87.06% |
public/img/arrow_down.png | 1.06KB | 0.24KB | ▼ 77.47% |
public/img/prev.png | 3.22KB | 0.41KB | ▼ 87.13% |