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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼3.21ms] Passed 4 tests
An overview of server-side resources used by Easy Accordion Gutenberg Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 36.30 ▼2.60 |
Dashboard /wp-admin | 3.42 ▲0.12 | 49.07 ▲2.51 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.19 ▲2.74 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 83.36 ▼14.22 |
Media Library /wp-admin/upload.php | 3.34 ▲0.12 | 36.89 ▲1.49 |
Easy Accordion /wp-admin/options-general.php?page=esab-accordion | 3.31 | 29.16 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Easy Accordion Gutenberg Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲50 | 13.20 ▼1.42 | 1.54 ▼0.46 | 39.90 ▼6.29 |
Dashboard /wp-admin | 2,207 ▲16 | 5.83 ▲0.97 | 96.82 ▼6.48 | 39.59 ▼2.92 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▼0.02 | 36.09 ▲1.37 | 33.81 ▼1.58 |
Add New Post /wp-admin/post-new.php | 6,590 ▲5,068 | 22.39 ▼0.82 | 1,020.93 ▲341.94 | 63.92 ▲12.28 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.21 ▲0.02 | 93.74 ▼4.71 | 40.47 ▼1.13 |
Easy Accordion /wp-admin/options-general.php?page=esab-accordion | 1,554 | 8.93 | 297.27 | 59.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-accordion-block/admin/class-esab-blocks.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in easy-accordion-block/assets to your readme.txt
easy-accordion-block/plugin.php 92% from 13 tests
The main PHP file in "Easy Accordion Gutenberg Block" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-accordion-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,070 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 43 | 82 | 348 |
CSS | 4 | 62 | 9 | 317 |
JSON | 1 | 0 | 0 | 299 |
JavaScript | 3 | 5 | 19 | 106 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected