Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.68MB] [CPU: ▲2.55ms] Passed 4 tests
Server-side resources used by ResizeFly
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 47.01 ▲8.54 |
Dashboard /wp-admin | 4.12 ▲0.81 | 52.20 ▲4.94 |
Posts /wp-admin/edit.php | 4.17 ▲0.81 | 53.66 ▲4.93 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.75 | 86.43 ▼8.21 |
Media Library /wp-admin/upload.php | 3.99 ▲0.75 | 45.94 ▲12.07 |
Resizefly /wp-admin/upload.php?page=resizefly | 4.00 | 38.55 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 95 new files
Database: no new tables, 11 new options
New WordPress options |
---|
resizefly_sizes |
widget_recent-posts |
widget_recent-comments |
resizefly_user_sizes |
resizefly_restrict_sizes |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
resizefly_resized_path |
db_upgraded |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ResizeFly
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▲0.08 | 1.71 ▼0.15 | 45.01 ▼2.35 |
Dashboard /wp-admin | 2,202 ▲22 | 5.67 ▲0.01 | 90.39 ▲1.10 | 39.62 ▼1.28 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.09 ▲0.07 | 35.21 ▼0.90 | 32.06 ▼8.45 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.66 ▲0.40 | 689.36 ▲32.46 | 50.05 ▲1.02 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.18 ▼0.00 | 100.79 ▼7.95 | 47.07 ▲2.40 |
Resizefly /wp-admin/upload.php?page=resizefly | 1,371 | 1.78 | 26.10 | 37.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/resizefly/views/field/partials/sizes/row-template.php
- > /wp-content/plugins/resizefly/views/field/partials/sizes/legend.php
- 73× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function Alpipego\\Resizefly\\object() in wp-content/plugins/resizefly/app/config/compatibles-admin.php:10
- > PHP Notice
Undefined variable: args in wp-content/plugins/resizefly/views/field/resizefly-addon-license.php on line 13
- > PHP Fatal error
Uncaught Error: Interface 'Alpipego\\Resizefly\\Image\\EditorWrapperInterface' not found in wp-content/plugins/resizefly/src/Image/EditorWrapper.php:16
- > PHP Notice
Undefined variable: args in wp-content/plugins/resizefly/views/field/partials/sizes/legend.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/resizefly/app/actions/wp-get-attachment-src.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resizefly/app/actions/template-redirect.php:18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/resizefly/views/page/resizefly.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/resizefly/views/field/resizefly-restrict-sizes.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resizefly/app/actions/after-setup-theme.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/resizefly/views/field/resizefly-purge-cache.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: gif, dynamic images, on-the-fly, dynamic, jpg...
resizefly/resizefly.php Passed 13 tests
The main PHP script in "ResizeFly" version 3.2.6 is automatically included on every request by WordPress
41 characters long description:
Dynamically resize your images on the fly
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin4,132 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 883 | 2,140 | 3,932 |
JavaScript | 4 | 18 | 0 | 199 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 13 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 3 | 6.67% |
▷ Concrete classes | 42 | 93.33% |
▷ Final classes | 11 | 26.19% |
Methods | 311 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 259 | 83.28% |
▷ Protected methods | 6 | 1.93% |
▷ Private methods | 46 | 14.79% |
Functions | 42 | |
▷ Named functions | 3 | 7.14% |
▷ Anonymous functions | 39 | 92.86% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.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
There were not PNG files found in your plugin