Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼137.59ms] Passed 4 tests
A check of server-side resources used by EchBay Optimize Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.93 ▲0.21 | 24.21 ▼0.32 |
Dashboard /wp-admin | 3.16 ▲0.11 | 55.87 ▲0.27 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 48.25 ▼0.34 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 108.23 ▼548.56 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 38.73 ▼1.15 |
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu | 3.08 | 29.10 |
Optimize Images /wp-admin/admin.php?page=echbay-optimize-images | 3.08 | 31.69 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for EchBay Optimize Images
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲87 | 16.02 ▲0.16 | 8.04 ▼2.23 | 43.25 ▼5.69 |
Dashboard /wp-admin | 3,007 ▲73 | 6.06 ▲0.14 | 140.67 ▼12.85 | 104.92 ▼12.16 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.70 ▼0.01 | 77.90 ▲7.92 | 97.87 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,637 ▲22 | 21.05 ▼0.19 | 287.09 ▼1.16 | 119.07 ▲3.65 |
Media Library /wp-admin/upload.php | 1,841 ▲34 | 5.03 ▼0.00 | 157.73 ▼26.97 | 120.38 ▼6.20 |
Webgiare Plugins /wp-admin/admin.php?page=echbay-plugins-menu | 1,304 | 2.34 | 62.21 | 97.88 |
Optimize Images /wp-admin/admin.php?page=echbay-optimize-images | 1,304 | 2.34 | 64.39 | 100.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/echbay-optimize-images/eoi.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Add an image for screenshot #1 (EchBay Optimize Images main.)
echbay-optimize-images/eoi.php 77% from 13 tests
The main PHP file in "EchBay Optimize Images" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("echbay-optimize-images.php" instead of "eoi.php")
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
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
Everything looks great! No dangerous files found in this plugin625 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 123 | 622 |
CSS | 1 | 0 | 0 | 1 |
HTML | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin