Benchmarks
Plugin footprint 82% from 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.00MB] [CPU: ▼12.64ms] 75% from 4 tests
An overview of server-side resources used by Photu - URL based image manipulation and optimization
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 544.26ms on /wp-admin/options-general.php?page=photu-setting)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.65 ▼3.02 |
Dashboard /wp-admin | 3.31 ▼0.03 | 48.76 ▼16.37 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.39 ▼8.13 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.52 ▼23.04 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.67 ▲3.67 |
photu settings /wp-admin/options-general.php?page=photu-setting | 3.22 | 544.26 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Photu - URL based image manipulation and optimization
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▲0.03 | 1.69 ▼0.07 | 41.68 ▲2.56 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.05 | 91.22 ▼1.02 | 41.74 ▼4.57 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.98 ▼0.02 | 39.81 ▲3.78 | 35.85 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.19 ▲0.24 | 658.45 ▲8.08 | 49.96 ▼5.27 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.21 ▲0.01 | 95.96 ▼10.81 | 41.48 ▼3.51 |
photu settings /wp-admin/options-general.php?page=photu-setting | 994 | 1.99 | 22.68 | 29.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=photu-setting
- > Notice in wp-content/plugins/photu/includes/setting.php+240
Undefined variable: plugin_data
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=photu-setting
- > Notice in wp-content/plugins/photu/includes/setting.php+240
Trying to access array offset on value of type null
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
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/photu/trunk/includes/setting.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/photu/trunk/photu.php:11
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/photu/includes/setting.php on line 2
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/photu/trunk/includes/setting.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/photu/photu.php:11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/photu/includes/setting.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/photu/trunk/includes/setting.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/photu/includes/setting.php on line 2
- > PHP Warning
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 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
- Donate link: Invalid URI found ("")
photu/photu.php 92% from 13 tests
The main file in "Photu - URL based image manipulation and optimization" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 306 characters long)
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
There were no executable files found in this plugin2,540 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 263 | 0 | 1,403 |
PHP | 5 | 342 | 999 | 1,137 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 122.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 201.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 162 | 90.00% |
▷ Public methods | 168 | 93.33% |
▷ Protected methods | 8 | 4.44% |
▷ Private methods | 4 | 2.22% |
Functions | 18 | |
▷ Named functions | 14 | 77.78% |
▷ Anonymous functions | 4 | 22.22% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/includes/mogiio-logo-dark.png | 30.03KB | 13.21KB | ▼ 56.01% |
includes/mogiio-logo-dark.png | 30.03KB | 13.21KB | ▼ 56.01% |