Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.79ms] Passed 4 tests
Analyzing server-side resources used by Before After image Gutenberg Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.53 ▼7.11 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.87 ▼0.32 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.49 ▲2.54 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.98 ▼15.09 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.72 ▼0.63 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Before After image Gutenberg Block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.34 ▼0.19 | 1.77 ▼0.04 | 45.29 ▲2.67 |
Dashboard /wp-admin | 2,195 ▲17 | 5.62 ▼0.02 | 95.07 ▼25.05 | 38.22 ▼4.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 34.07 ▼4.89 | 33.84 ▼1.77 |
Add New Post /wp-admin/post-new.php | 6,199 ▲4,664 | 19.21 ▲0.86 | 944.39 ▲255.15 | 55.91 ▼11.22 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.16 ▼0.05 | 103.32 ▼1.38 | 45.74 ▼1.87 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #0 in before-after-image-block/assets to your readme.txt
before-after-image-block/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Before After image Gutenberg Block" version 1.0.0
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("before-after-image-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,015 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 7,649 |
JavaScript | 4 | 28 | 20 | 208 |
Sass | 3 | 6 | 7 | 84 |
PHP | 2 | 20 | 60 | 72 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin