Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼139.46ms] Passed 4 tests
Analyzing server-side resources used by ImageCare
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.16 | 28.75 ▲5.92 |
Dashboard /wp-admin | 3.11 ▲0.05 | 45.35 ▲2.14 |
Posts /wp-admin/edit.php | 3.16 ▲0.05 | 42.27 ▼2.64 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 87.70 ▼560.38 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 29.82 ▲3.03 |
ImageCare /wp-admin/tools.php?page=imagecare | 3.03 | 28.46 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for ImageCare
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.96 ▲0.38 | 8.99 ▲0.34 | 49.06 ▲6.81 |
Dashboard /wp-admin | 2,978 ▲44 | 5.89 ▼0.23 | 137.22 ▼9.07 | 113.91 ▼4.88 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.01 | 64.68 ▼3.38 | 85.63 ▼8.01 |
Add New Post /wp-admin/post-new.php | 1,675 ▼1 | 18.84 ▼0.00 | 377.79 ▼13.54 | 105.95 ▼3.07 |
Media Library /wp-admin/upload.php | 1,812 ▼1 | 5.04 ▲0.01 | 143.10 ▲0.58 | 112.49 ▼10.37 |
ImageCare /wp-admin/tools.php?page=imagecare | 1,137 | 2.10 | 58.73 | 75.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/imagecare/imagecare.php:242
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/imagecare/inc-iface-maxres.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/imagecare/inc-func-backup.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/imagecare/inc-iface-cleanregen.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/imagecare/inc-iface-bup.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/imagecare/inc-iface-ini.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/imagecare/inc-iface-regensizes.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/imagecare/inc-iface-common.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/imagecare/inc-func-regensizes.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/imagecare/inc-func-cleanregen.php:11
- > 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 90% from 29 tests
readme.txt 81% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
- Screenshots: Screenshot #1 (Welcome section with large explanations about what to do and why to do it) image required
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== imagecare ===
)
imagecare/imagecare.php Passed 13 tests
The entry point to "ImageCare" version 1.0 is a PHP file that has certain tags in its header comment area
50 characters long description:
It takes care about the space taken by the images.
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
No dangerous file extensions were detected927 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 110 | 44 | 913 |
SVG | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 47.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 52.63% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 71.69KB | 32.34KB | ▼ 54.89% |