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.02MB] [CPU: ▼5.33ms] Passed 4 tests
A check of server-side resources used by Canvas Image Resize
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.69 ▲3.63 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.39 ▼8.10 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.49 ▼0.83 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.50 ▼10.46 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.92 ▼1.93 |
Canvas Image Resize /wp-admin/options-general.php?page=canvas-image-resize | 3.21 | 30.08 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Canvas Image Resize
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.37 | 1.82 ▲0.13 | 45.48 ▲5.42 |
Dashboard /wp-admin | 2,196 ▲16 | 5.56 ▼0.11 | 87.46 ▼3.14 | 38.56 ▼4.90 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.99 ▼0.16 | 39.05 ▼4.54 | 37.00 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 23.54 ▲0.67 | 667.21 ▼3.02 | 66.31 ▲8.54 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.23 ▲0.11 | 99.05 ▼16.61 | 43.57 ▼3.35 |
Canvas Image Resize /wp-admin/options-general.php?page=canvas-image-resize | 819 | 2.00 | 25.57 | 29.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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
Even though no errors were found, 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/canvas-image-resize/canvas-image-resize.php:113
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (The settings page.)
canvas-image-resize/canvas-image-resize.php Passed 13 tests
The principal PHP file in "Canvas Image Resize" v. 1.0.1 is loaded by WordPress automatically on each request
63 characters long description:
Re-sizes images right inside the browser BEFORE uploading them.
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
No dangerous file extensions were detected173 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 159 | 138 |
PO File | 1 | 8 | 16 | 35 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 62.50% |
▷ Protected methods | 6 | 37.50% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin