Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5463
Function is_plugin_page is deprecated since version 3.1.0 with no alternative available.
Server metrics [RAM: ▼1.91MB] [CPU: ▼52.05ms] Passed 4 tests
Server-side resources used by Better Images Crop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.63 ▼36.37 |
Dashboard /wp-admin | 2.11 ▼1.20 | 5.77 ▼49.32 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.49 ▼39.51 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.42 ▼83.00 |
Media Library /wp-admin/upload.php | 2.11 ▼1.13 | 5.72 ▼28.72 |
Better Image Crop /wp-admin/options-general.php?page=better-images-crop/better-images-crop.php | 2.11 | 5.93 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
wd_bic_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Better Images Crop
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.43 ▲0.06 | 1.94 ▼0.26 | 41.62 ▼2.67 |
Dashboard /wp-admin | 2,207 ▲19 | 5.78 ▲0.89 | 97.49 ▼11.43 | 40.47 ▼8.90 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.12 | 39.70 ▲3.33 | 36.60 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,531 ▲11 | 23.42 ▲0.35 | 681.52 ▼0.39 | 51.02 ▼2.46 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.22 ▲0.01 | 107.91 ▲5.45 | 48.00 ▲4.19 |
Better Image Crop /wp-admin/options-general.php?page=better-images-crop/better-images-crop.php | 955 | 2.20 | 29.51 | 44.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5463
Function is_plugin_page is deprecated since version 3.1.0 with no alternative available.
- This plugin did not uninstall successfully, leaving 7 options in the database
- wd_bic_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=better-images-crop/better-images-crop.php
- > User deprecated in wp-includes/functions.php+5463
Function is_plugin_page is deprecated since version 3.1.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=better-images-crop/better-images-crop.php
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=better-images-crop/better-images-crop.php
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 is_plugin_page() in wp-content/plugins/better-images-crop/better-images-crop.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== better-images-crop ===
)
better-images-crop/better-images-crop.php Passed 13 tests
"Better Images Crop" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
this simple plugin help theme developers to create their thumbnail
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin211 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 42 | 17 | 211 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
6 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/images-position-5.png | 7.09KB | 3.33KB | ▼ 53.06% |
images/images-position-1.png | 8.01KB | 3.72KB | ▼ 53.49% |
images/images-position-4.png | 6.93KB | 3.26KB | ▼ 52.92% |
images/images-position-3.png | 7.59KB | 3.53KB | ▼ 53.56% |
images/images-position-6.png | 7.08KB | 3.49KB | ▼ 50.65% |