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.56MB] [CPU: ▼13.28ms] Passed 4 tests
Server-side resources used by IOptimizer - Compress, Optimize and Lazy Load Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 39.06 ▼2.66 |
Dashboard /wp-admin | 3.42 ▲0.12 | 51.41 ▲3.25 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 46.40 ▼1.19 |
Add New Post /wp-admin/post-new.php | 3.30 ▼2.59 | 38.28 ▼52.38 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.03 ▲3.11 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
ioptimizer_lazy_load |
ioptimizer_token |
widget_theysaidso_widget |
ioptimizer_status |
ioptimizer_host |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for IOptimizer - Compress, Optimize and Lazy Load Images
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.72 ▲0.37 | 1.67 ▼0.05 | 42.15 ▼0.70 |
Dashboard /wp-admin | 2,211 ▲31 | 5.58 ▼0.01 | 85.56 ▼13.44 | 40.39 ▼1.86 |
Posts /wp-admin/edit.php | 2,119 ▲22 | 1.97 ▼0.05 | 34.72 ▼3.20 | 35.96 ▼5.83 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.37 ▼4.67 | 636.22 ▼17.44 | 67.02 ▲9.13 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.21 ▼0.01 | 103.03 ▼12.06 | 44.29 ▼3.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_theysaidso_widget
- ioptimizer_host
- widget_recent-posts
- widget_recent-comments
- ioptimizer_lazy_load
- theysaidso_admin_options
- ioptimizer_token
- can_compress_scripts
- db_upgraded
- ioptimizer_status
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ioptimizer/admin/partials/ioptimizer-admin-display.php:2
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The main interface), #2 (The image menu)
ioptimizer/ioptimizer.php Passed 13 tests
The entry point to "IOptimizer - Compress, Optimize and Lazy Load Images" version 1.0.3 is a PHP file that has certain tags in its header comment area
51 characters long description:
Compress images remotely for a better loading time.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,133 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 143 | 503 | 623 |
CSS | 1 | 64 | 5 | 401 |
JavaScript | 1 | 13 | 1 | 108 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short 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.18 |
Average class complexity | 5.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 30 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.06MB with 0.82MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 214.09KB | 40.70KB | ▼ 80.99% |
assets/screenshot-2.png | 871.06KB | 236.10KB | ▼ 72.90% |