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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼14.43ms] Passed 4 tests
Server-side resources used by Cloudimage
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 44.46 ▲0.88 |
Dashboard /wp-admin | 3.48 ▲0.13 | 34.08 ▼27.15 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 39.56 ▼6.72 |
Add New Post /wp-admin/post-new.php | 5.72 ▼0.17 | 68.90 ▼23.44 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 34.54 ▼0.40 |
Advanced /wp-admin/admin.php?page=cloudimage-advanced | 3.45 | 35.32 |
General /wp-admin/admin.php?page=cloudimage | 3.45 | 29.46 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Cloudimage: 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 ▲91 | 14.24 ▲0.10 | 1.85 ▲0.10 | 43.93 ▲2.69 |
Dashboard /wp-admin | 2,235 ▲55 | 5.66 ▼0.00 | 81.90 ▼2.46 | 57.41 ▲11.69 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.01 ▲0.00 | 34.39 ▼0.47 | 33.67 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,713 ▲176 | 22.57 ▲4.51 | 664.59 ▼35.44 | 61.19 ▼11.91 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.18 ▼0.03 | 95.91 ▼4.85 | 65.19 ▲21.68 |
Advanced /wp-admin/admin.php?page=cloudimage-advanced | 1,346 | 2.04 | 24.82 | 53.66 |
General /wp-admin/admin.php?page=cloudimage | 1,088 | 1.82 | 23.35 | 37.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cloudimage
- > Notice in wp-content/plugins/cloudimage/admin/partials/cloudimage-admin-general-display.php+20
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cloudimage/public/partials/cloudimage-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cloudimage/includes/class-cloudimage-output-buffering.php:92
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cloudimage/admin/partials/cloudimage-admin-advanced-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cloudimage/admin/partials/cloudimage-admin-general-display.php:18
- > 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: You are using too many tags: 16 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Cloudimage website), #2 (Benchmark your images before and after Cloudimage), #3 (Plugin configuration page), #4 (Cloudimage Admin - Usage Statistics), #5 (Cloudimage Admin - Performance Statistics)
cloudimage/cloudimage.php Passed 13 tests
The main PHP script in "Cloudimage" version 3.2.1 is automatically included on every request by WordPress
63 characters long description:
The easiest way to deliver lightning fast images to your users.
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,152 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 486 | 1,139 | 1,513 |
CSS | 2 | 77 | 18 | 355 |
PO File | 1 | 75 | 3 | 222 |
JavaScript | 5 | 9 | 66 | 40 |
YAML | 1 | 3 | 0 | 22 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 25.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 148.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 67 | |
▷ Static methods | 2 | 2.99% |
▷ Public methods | 40 | 59.70% |
▷ Protected methods | 5 | 7.46% |
▷ Private methods | 22 | 32.84% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/Cloudimage_BW.png | 0.61KB | 0.58KB | ▼ 5.89% |
admin/images/Cloudimage_BW_128x128.png | 7.26KB | 5.28KB | ▼ 27.26% |
admin/images/logo_new_cloudimage.png | 64.66KB | 33.02KB | ▼ 48.93% |