Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼5.54ms] Passed 4 tests
An overview of server-side resources used by Offload, AI & Optimize with Cloudflare Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.18 | 41.68 ▲1.56 |
Dashboard /wp-admin | 3.47 ▲0.12 | 50.77 ▼9.56 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.93 ▼2.65 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 92.92 ▼11.52 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.25 ▲3.37 |
Offload Settings /wp-admin/upload.php?page=cf-images | 3.36 | 34.09 |
Server storage [IO: ▲4.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Offload, AI & Optimize with Cloudflare Images
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲47 | 14.27 ▼0.37 | 1.57 ▼0.16 | 36.68 ▼8.44 |
Dashboard /wp-admin | 2,202 ▲35 | 5.58 ▲0.01 | 92.96 ▼21.11 | 41.67 ▼2.38 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.96 ▼0.07 | 39.93 ▼8.26 | 36.24 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,529 ▼1 | 23.22 ▲0.37 | 585.09 ▼23.63 | 51.95 ▼3.21 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.07 | 95.28 ▼4.15 | 39.17 ▼2.21 |
Offload Settings /wp-admin/upload.php?page=cf-images | 946 | 2.52 | 58.17 | 38.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: optimize, cloudflare, cloudflare images, compress, offload images...
cf-images/cf-images.php Passed 13 tests
This is the main PHP file of "Offload, AI & Optimize with Cloudflare Images" version 1.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
64 characters long description:
Offload media library images to the `Cloudflare Images` service.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin3,396 lines of code in 62 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 991 | 3,172 | 3,168 |
Markdown | 1 | 59 | 0 | 174 |
SVG | 11 | 0 | 0 | 50 |
CSS | 2 | 2 | 2 | 2 |
JavaScript | 3 | 0 | 4 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 39 | |
▷ Abstract classes | 4 | 10.26% |
▷ Concrete classes | 35 | 89.74% |
▷ Final classes | 0 | 0.00% |
Methods | 234 | |
▷ Static methods | 10 | 4.27% |
▷ Public methods | 156 | 66.67% |
▷ Protected methods | 35 | 14.96% |
▷ Private methods | 43 | 18.38% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 7 | |
▷ Global constants | 2 | 28.57% |
▷ Class constants | 5 | 71.43% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin