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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.70ms] Passed 4 tests
A check of server-side resources used by ImageEngine Optimizer CDN – Convert to WebP & AVIF
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.64 ▼3.33 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.78 ▼1.14 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.62 ▼4.92 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.64 ▼12.91 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.95 ▼1.64 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
image_cdn |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ImageEngine Optimizer CDN – Convert to WebP & AVIF
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲85 | 13.24 ▼0.98 | 1.71 ▼0.44 | 43.88 ▼2.40 |
Dashboard /wp-admin | 2,242 ▲53 | 5.84 ▲0.88 | 104.26 ▼16.37 | 38.80 ▼2.37 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.01 ▲0.02 | 35.86 ▼1.37 | 30.79 ▼4.21 |
Add New Post /wp-admin/post-new.php | 1,388 ▼126 | 16.59 ▼1.08 | 570.84 ▼106.11 | 45.13 ▼4.97 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.26 ▲0.01 | 111.56 ▲2.05 | 47.62 ▲1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/image-cdn/templates/settings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: cdn, image convert, image cdn, webp, content delivery network...
image-cdn/image-cdn.php 92% from 13 tests
"ImageEngine Optimizer CDN – Convert to WebP & AVIF" version 1.1.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 160 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
Good job! No executable or dangerous file extensions detected1,018 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 218 | 450 | 1,017 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 36.33 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 33 | 76.74% |
▷ Public methods | 41 | 95.35% |
▷ Protected methods | 1 | 2.33% |
▷ Private methods | 1 | 2.33% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin