Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.98ms] Passed 4 tests
Analyzing server-side resources used by Animate Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.11 ▼4.50 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.37 ▲2.63 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.68 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 92.62 ▼7.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.20 ▼0.25 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
animate-blocks_version |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Animate Blocks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 13.29 ▼1.16 | 3.07 ▲0.98 | 38.05 ▼6.90 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲0.97 | 109.35 ▲5.68 | 41.80 ▼0.20 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.04 | 40.33 ▲0.08 | 34.18 ▼0.43 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,687 | 21.95 ▲4.31 | 859.01 ▲212.23 | 68.25 ▲11.62 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.17 ▼0.09 | 99.08 ▼3.69 | 44.63 ▲0.36 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- animate-blocks_version
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Animate Blocks in Gutenberg editor) image not found
animate-blocks/animate-blocks.php Passed 13 tests
"Animate Blocks" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
30 characters long description:
Animate your Gutenberg blocks.
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 plugin547 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 19 | 14 | 437 |
PHP | 2 | 30 | 100 | 103 |
Sass | 1 | 0 | 0 | 6 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 8 | 66.67% |
▷ Protected methods | 4 | 33.33% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.59MB with 0.43MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 600.37KB | 164.71KB | ▼ 72.57% |