Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.06ms] Passed 4 tests
Server-side resources used by Accordion Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.67 ▼0.17 |
Dashboard /wp-admin | 3.37 ▲0.03 | 45.05 ▼17.81 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 44.60 ▼7.38 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 89.87 ▼6.88 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.61 ▲2.35 |
Accordion Blocks /wp-admin/options-general.php?page=accordion_blocks_settings | 3.26 | 31.14 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 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
A check of browser resources used by Accordion Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 14.11 ▼0.48 | 5.37 ▲3.54 | 37.93 ▼8.33 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼1.05 | 110.20 ▲2.91 | 41.37 ▲1.53 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 40.02 ▲4.45 | 34.53 ▲0.36 |
Add New Post /wp-admin/post-new.php | 6,355 ▲4,841 | 27.59 ▲10.03 | 830.92 ▲218.79 | 52.06 ▲2.49 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.16 ▼0.02 | 106.61 ▲6.71 | 44.37 ▲1.24 |
Accordion Blocks /wp-admin/options-general.php?page=accordion_blocks_settings | 806 | 2.06 | 23.03 | 27.75 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/accordion-blocks/accordion-blocks.php:34
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: accordion, block, gutenberg, accordions, responsive
accordion-blocks/accordion-blocks.php Passed 13 tests
The main file in "Accordion Blocks" v. 1.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Gutenberg blocks for creating responsive accordion drop-downs.
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
Everything looks great! No dangerous files found in this plugin417 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 82 | 83 | 222 |
JavaScript | 3 | 63 | 125 | 147 |
JSON | 1 | 0 | 0 | 46 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 0.36KB | 0.13KB | ▼ 65.50% |
assets/icon-256x256.png | 0.67KB | 0.15KB | ▼ 77.71% |
assets/screenshot-1.png | 152.55KB | 58.72KB | ▼ 61.51% |
assets/screenshot-2.png | 19.91KB | 9.84KB | ▼ 50.55% |