Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼302.59ms] Passed 4 tests
An overview of server-side resources used by Images Optimize and Upload CF7
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.15 | 55.18 ▼0.75 |
Dashboard /wp-admin | 3.49 ▲0.08 | 33.14 ▼1.98 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 37.35 ▼0.92 |
Add New Post /wp-admin/post-new.php | 6.98 ▼0.02 | 97.88 ▼1,206.57 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 24.64 ▼0.88 |
Optimize & Upload /wp-admin/admin.php?page=optimizer-3000 | 3.40 | 27.78 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Images Optimize and Upload CF7
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲48 | 15.78 ▼0.20 | 6.23 ▲0.12 | 2.37 ▼0.46 |
Dashboard /wp-admin | 2,925 ▲64 | 6.08 ▼0.12 | 125.11 ▼16.41 | 163.54 ▼5.07 |
Posts /wp-admin/edit.php | 2,731 ▲37 | 3.25 ▲0.01 | 67.91 ▲0.35 | 141.32 ▼5.69 |
Add New Post /wp-admin/post-new.php | 1,797 ▲123 | 21.19 ▼0.32 | 443.86 ▲19.27 | 155.83 ▼4.87 |
Media Library /wp-admin/upload.php | 1,738 ▲43 | 5.49 ▲0.01 | 140.67 ▼6.69 | 186.23 ▼5.14 |
Optimize & Upload /wp-admin/admin.php?page=optimizer-3000 | 1,487 | 2.50 | 57.38 | 151.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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
Even though everything seems fine, this is not 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
Please fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: legend in wp-content/plugins/images-optimize-and-upload-cf7/views/form.tag.cf7.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/images-optimize-and-upload-cf7/views/form.notice.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/images-optimize-and-upload-cf7/views/form.tag.cf7.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/images-optimize-and-upload-cf7/views/form.settings.optimizer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/images-optimize-and-upload-cf7/index.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: compression, ajax uploader, contact form 7 uploader, upload, contact form 7...
images-optimize-and-upload-cf7/index.php 85% from 13 tests
The primary PHP file in "Images Optimize and Upload CF7" version 2.1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("images-optimize-and-upload-cf7.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,435 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 122 | 143 | 668 |
JavaScript | 3 | 61 | 79 | 346 |
CSS | 1 | 0 | 0 | 221 |
PO File | 1 | 57 | 58 | 200 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 12.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 29 | 90.62% |
▷ Protected methods | 2 | 6.25% |
▷ Private methods | 1 | 3.12% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 10 | 62.50% |
▷ Class constants | 6 | 37.50% |
▷ Public constants | 4 | 66.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected