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.20MB] [CPU: ▼3.29ms] Passed 4 tests
A check of server-side resources used by Accordion Toggle
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 40.45 ▼0.85 |
Dashboard /wp-admin | 3.49 ▲0.18 | 46.74 ▼3.44 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 47.25 ▲3.25 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 81.30 ▼7.43 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 34.74 ▼1.43 |
Server storage [IO: ▲6.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Accordion Toggle: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.26 ▼0.98 | 2.10 ▲0.22 | 42.61 ▼2.83 |
Dashboard /wp-admin | 2,209 ▲18 | 5.89 ▲0.97 | 106.29 ▼8.15 | 37.81 ▼9.74 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 36.43 ▼3.55 | 33.41 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,652 ▲119 | 24.42 ▲1.07 | 683.33 ▼8.97 | 37.25 ▼39.59 |
Media Library /wp-admin/upload.php | 1,382 ▲3 | 4.17 ▼0.01 | 97.62 ▼9.17 | 41.10 ▼2.18 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordion-toggle/blocks/accordion.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordion-toggle/blocks/accordion-item.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordion-toggle/includes/class-faq-schema.php:46
- > 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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: faq, collapse, accordions, gutenberg blocks, gutenberg...
accordion-toggle/accordion-toggle.php Passed 13 tests
This is the main PHP file of "Accordion Toggle" version 1.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Display Your FAQs & Improve User Experience with Accordion/Toggle block.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected17,282 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 0 | 12 | 11,462 |
CSS | 6 | 3 | 46 | 4,769 |
PHP | 13 | 143 | 233 | 928 |
JavaScript | 6 | 13 | 7 | 96 |
JSON | 3 | 0 | 0 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.71 |
Average class complexity | 33.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 5.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 44 | |
▷ Static methods | 15 | 34.09% |
▷ Public methods | 38 | 86.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.64% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin