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.02MB] [CPU: ▼4.88ms] Passed 4 tests
This is a short check of server-side resources used by Image Comparison Gutenberg Block
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 42.67 ▲3.52 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.28 ▼2.79 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 42.10 ▼7.84 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.36 ▼8.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.26 ▼0.51 |
Image Compare /wp-admin/tools.php?page=icgb-image-compare | 3.22 | 29.68 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Image Comparison Gutenberg Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲16 | 14.37 ▲0.02 | 8.57 ▲6.87 | 42.63 ▼0.69 |
Dashboard /wp-admin | 2,199 ▲19 | 5.65 ▲0.04 | 85.56 ▼6.77 | 38.03 ▼5.57 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▼0.00 | 36.71 ▼3.57 | 32.26 ▼7.12 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,843 | 27.53 ▲4.32 | 882.89 ▲274.42 | 66.19 ▲8.26 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.22 ▲0.01 | 96.79 ▼1.67 | 41.94 ▲2.10 |
Image Compare /wp-admin/tools.php?page=icgb-image-compare | 1,297 | 8.96 | 291.04 | 70.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
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
Even though no errors were found, this is by no means an exhaustive test
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 items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-compare-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
No browser errors were detected
Optimizations
Plugin configuration 83% 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
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in image-compare-block/assets to your readme.txt
image-compare-block/plugin.php 69% from 13 tests
The primary PHP file in "Image Comparison Gutenberg Block" version 1.5.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.7")
- Requires PHP: Required version must match the one declared in readme.txt ("5.4" instead of "7.0")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("image-compare-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected859 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 14 | 16 | 338 |
CSS | 4 | 12 | 1 | 303 |
PHP | 4 | 22 | 55 | 116 |
JSON | 1 | 0 | 0 | 69 |
Sass | 2 | 0 | 0 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin