Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.96ms] Passed 4 tests
An overview of server-side resources used by Image Comparison
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.82 ▼0.36 |
Dashboard /wp-admin | 3.44 ▲0.14 | 47.58 ▼8.54 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 45.98 ▼1.73 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 89.79 ▼9.19 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 36.45 ▲1.61 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Comparison
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.30 ▼0.93 | 4.05 ▲2.05 | 41.11 ▼5.10 |
Dashboard /wp-admin | 2,209 ▲18 | 5.85 ▼0.03 | 101.14 ▼1.70 | 39.93 ▲0.02 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.01 ▲0.02 | 38.39 ▲2.40 | 36.18 ▲3.53 |
Add New Post /wp-admin/post-new.php | 1,650 ▲106 | 24.20 ▲6.17 | 661.07 ▲45.50 | 38.55 ▼19.82 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.04 | 103.81 ▲7.02 | 44.49 ▲1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: before after, image compare, image, comparison, compare...
image-comparison/image-comparison.php Passed 13 tests
"Image Comparison" version 1.3.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
Let the visitors compare images & make your website interactive.
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
Success! There were no dangerous files found in this plugin731 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 99 | 155 | 654 |
JavaScript | 5 | 11 | 4 | 66 |
JSON | 1 | 0 | 0 | 9 |
CSS | 2 | 1 | 6 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 40.25 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 5.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 30 | |
▷ Static methods | 12 | 40.00% |
▷ Public methods | 26 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.33% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.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
No PNG images were found in this plugin