Benchmarks
Plugin footprint 65% 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: ▲4.63MB] [CPU: ▲20.56ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Accordion Gutenberg Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.48 ▲5.02 | 60.71 ▲19.91 |
Dashboard /wp-admin | 8.50 ▲5.19 | 70.33 ▲21.48 |
Posts /wp-admin/edit.php | 8.50 ▲5.14 | 62.03 ▲18.36 |
Add New Post /wp-admin/post-new.php | 9.06 ▲3.17 | 106.84 ▲22.48 |
Media Library /wp-admin/upload.php | 8.50 ▲5.27 | 61.23 ▲29.03 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.50 | 50.19 |
Accordion Block /wp-admin/options-general.php?page=advanced-accordion-block | 8.50 | 53.43 |
Server storage [IO: ▲3.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 211 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
fs_gdpr |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
fs_active_plugins |
fs_debug_mode |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Accordion Gutenberg Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲166 | 13.82 ▼0.72 | 8.42 ▲6.55 | 30.83 ▼13.23 |
Dashboard /wp-admin | 2,210 ▲33 | 5.56 ▼0.01 | 96.43 ▼1.06 | 44.85 ▲1.49 |
Posts /wp-admin/edit.php | 2,128 ▲31 | 2.00 ▲0.03 | 35.47 ▼1.02 | 33.07 ▼1.85 |
Add New Post /wp-admin/post-new.php | 6,401 ▲4,875 | 22.73 ▼0.90 | 867.51 ▲179.12 | 36.80 ▼17.47 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.22 ▲0.02 | 97.32 ▲0.56 | 43.48 ▼1.85 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,061 | 1.69 | 24.69 | 28.69 |
Accordion Block /wp-admin/options-general.php?page=advanced-accordion-block | 989 | 2.05 | 25.23 | 53.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/advanced-accordion-block/admin/fs/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 10 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- fs_gdpr
- fs_accounts
- can_compress_scripts
- fs_debug_mode
- theysaidso_admin_options
- widget_recent-comments
- fs_active_plugins
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-accordion-block/admin/admin.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in advanced-accordion-block/assets to your readme.txt
advanced-accordion-block/advanced-accordion-block.php 77% from 13 tests
"Advanced Accordion Gutenberg Block" version 4.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "5.7")
- Requires PHP: Required version must match the one declared in readme.txt ("7.4" instead of "7.0")
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected34,401 lines of code in 168 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 7,269 | 16,142 | 30,520 |
JavaScript | 24 | 77 | 119 | 1,671 |
CSS | 17 | 150 | 113 | 1,338 |
JSON | 8 | 0 | 0 | 521 |
Markdown | 1 | 68 | 0 | 214 |
Sass | 5 | 11 | 13 | 137 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 86.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 47 | |
▷ Abstract classes | 2 | 4.26% |
▷ Concrete classes | 45 | 95.74% |
▷ Final classes | 1 | 2.22% |
Methods | 1,147 | |
▷ Static methods | 174 | 15.17% |
▷ Public methods | 806 | 70.27% |
▷ Protected methods | 15 | 1.31% |
▷ Private methods | 326 | 28.42% |
Functions | 94 | |
▷ Named functions | 94 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 126 | |
▷ Global constants | 101 | 80.16% |
▷ Class constants | 25 | 19.84% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/fs/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/fs/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/fs/assets/img/advanced-accordion-block.png | 4.97KB | 1.83KB | ▼ 63.15% |
admin/fs/assets/img/eazydocs.png | 2.71KB | 1.41KB | ▼ 48.16% |