Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.25ms] Passed 4 tests
A check of server-side resources used by Multiple Cropped Images
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.72 ▼0.03 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.68 ▼2.67 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 50.27 ▼3.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 94.70 ▼3.26 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.02 ▲2.23 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Multiple Cropped Images
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.29 ▼0.07 | 1.84 ▲0.11 | 44.01 ▼0.10 |
Dashboard /wp-admin | 2,215 ▲38 | 5.67 ▼0.01 | 94.17 ▲5.23 | 40.62 ▲0.37 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.02 ▲0.01 | 34.84 ▲0.56 | 31.51 ▼5.81 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 22.91 ▼0.18 | 668.05 ▲44.67 | 65.47 ▲10.58 |
Media Library /wp-admin/upload.php | 1,420 ▲26 | 4.27 ▲0.11 | 96.62 ▼17.05 | 41.59 ▼5.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/multiple-cropped-images/dist/templates/mci-size.php:4
- > PHP Notice
Undefined variable: id in wp-content/plugins/multiple-cropped-images/dist/templates/mci-meta.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/multiple-cropped-images/dist/templates/mci-meta.php:20
- > PHP Notice
Undefined variable: id in wp-content/plugins/multiple-cropped-images/dist/templates/mci-meta.php on line 19
- > PHP Notice
Undefined variable: title in wp-content/plugins/multiple-cropped-images/dist/templates/mci-meta.php on line 18
- > PHP Notice
Undefined variable: classes in wp-content/plugins/multiple-cropped-images/dist/templates/mci-size.php on line 1
- > PHP Notice
Undefined variable: icon in wp-content/plugins/multiple-cropped-images/dist/templates/mci-meta.php on line 13
- > PHP Notice
Undefined variable: classes in wp-content/plugins/multiple-cropped-images/dist/templates/mci-meta.php on line 1
- > PHP Notice
Undefined variable: cropped in wp-content/plugins/multiple-cropped-images/dist/templates/mci-meta.php on line 5
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Contributors: Contributors not specified
multiple-cropped-images/mci.php 92% from 13 tests
The main PHP script in "Multiple Cropped Images" version 1.1.7 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("multiple-cropped-images.php" instead of "mci.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,187 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 228 | 94 | 793 |
JavaScript | 8 | 64 | 30 | 257 |
SVG | 10 | 2 | 4 | 106 |
JSON | 1 | 0 | 0 | 27 |
CSS | 4 | 1 | 11 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 20.25 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 29 | 58.00% |
▷ Public methods | 47 | 94.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.00% |
Functions | 10 | |
▷ Named functions | 3 | 30.00% |
▷ Anonymous functions | 7 | 70.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin