Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.75ms] Passed 4 tests
Server-side resources used by Acme Fix Images
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 35.24 ▼6.11 |
Dashboard /wp-admin | 3.37 ▲0.06 | 43.40 ▼10.26 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.97 ▲0.87 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 82.96 ▼15.50 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.66 ▲1.27 |
Acme Fix Images /wp-admin/themes.php?page=acme-fix-images-setting | 3.26 | 27.37 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
medium_crop |
can_compress_scripts |
widget_recent-posts |
large_crop |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Acme Fix Images
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▲0.09 | 1.63 ▼0.20 | 38.59 ▼9.40 |
Dashboard /wp-admin | 2,210 ▲22 | 4.82 ▼0.07 | 111.65 ▲4.07 | 43.59 ▼7.20 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▲0.01 | 35.44 ▼2.37 | 29.13 ▼6.63 |
Add New Post /wp-admin/post-new.php | 1,517 ▼11 | 17.69 ▼0.43 | 647.07 ▲18.91 | 60.36 ▼3.27 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▲0.01 | 101.50 ▼1.60 | 41.18 ▼5.36 |
Acme Fix Images /wp-admin/themes.php?page=acme-fix-images-setting | 873 | 2.07 | 28.09 | 28.20 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- large_crop
- theysaidso_admin_options
- db_upgraded
- medium_crop
- widget_recent-posts
Smoke tests 50% 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 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/acme-fix-images/acme-fix-images.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acme-fix-images/inc/hooks/fix-image-ajax.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acme-fix-images/inc/acme-admin-menu.php:280
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: hard crop, fix image, image builder, resize image
acme-fix-images/acme-fix-images.php Passed 13 tests
The entry point to "Acme Fix Images" version 1.0.0 is a PHP file that has certain tags in its header comment area
71 characters long description:
Fix image sizes after you have changed image sizes from Media Settings.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected293 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 71 | 122 | 293 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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.37 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin