Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.44ms] Passed 4 tests
Server-side resources used by Piio - Make your Images Load Faster, Optimize Your Website & Boost Your SEO
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.11 ▼0.50 |
Dashboard /wp-admin | 3.34 ▼0.00 | 50.94 ▼14.08 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.50 ▼3.76 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.35 ▼11.60 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.05 ▼4.32 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Piio - Make your Images Load Faster, Optimize Your Website & Boost Your SEO: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.55 ▲0.40 | 1.76 ▲0.04 | 46.38 ▲1.46 |
Dashboard /wp-admin | 2,232 ▲58 | 5.65 ▼0.02 | 86.38 ▼14.74 | 37.06 ▼5.16 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.03 ▲0.01 | 37.96 ▲2.41 | 33.16 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.77 ▲0.85 | 698.91 ▲38.04 | 52.74 ▼4.34 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.23 ▲0.05 | 100.24 ▼5.46 | 44.40 ▼4.11 |
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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/piio-image-optimization/admin/partials/piio-image-optimization-admin-display.php
- > /wp-content/plugins/piio-image-optimization/trunk/admin/partials/piio-image-optimization-admin-display.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/piio-image-optimization/admin/partials/piio-image-optimization-admin-display.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/piio-image-optimization/trunk/admin/partials/piio-image-optimization-admin-display.php:23
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: image compression, cdn, image compressor, responsive, lazy loading...
piio-image-optimization/piio-image-optimization.php Passed 13 tests
Analyzing the main PHP file in "Piio - Make your Images Load Faster, Optimize Your Website & Boost Your SEO" version 0.9.29
64 characters long description:
Generates responsive and optimized images, so you don't have to.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin963 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 188 | 620 | 916 |
JavaScript | 1 | 5 | 1 | 24 |
CSS | 1 | 0 | 5 | 18 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 17.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 106 | |
▷ Static methods | 10 | 9.43% |
▷ Public methods | 70 | 66.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 36 | 33.96% |
Functions | 10 | |
▷ Named functions | 8 | 80.00% |
▷ Anonymous functions | 2 | 20.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG files were detected