Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼141.80ms] Passed 4 tests
Server-side resources used by TileCrop
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 36.26 ▼1.63 |
Dashboard /wp-admin | 3.06 ▲0.01 | 54.77 ▲6.70 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.79 ▼0.85 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 89.90 ▼562.00 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 35.51 ▼2.72 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for TileCrop
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲107 | 15.88 ▲0.35 | 9.53 ▼1.11 | 50.18 ▼3.44 |
Dashboard /wp-admin | 2,969 ▲32 | 6.05 ▲0.13 | 158.81 ▲5.46 | 113.82 ▲3.91 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 64.90 ▼3.90 | 87.05 ▼5.56 |
Add New Post /wp-admin/post-new.php | 1,615 ▲115 | 21.39 ▲2.93 | 293.13 ▼94.17 | 100.56 ▼10.78 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.04 ▲0.02 | 161.52 ▲9.36 | 116.41 ▲3.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_Imagick' not found in wp-content/plugins/tilecrop/editors/tilecropIM.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Image_Editor_GD' not found in wp-content/plugins/tilecrop/editors/tilecropGD.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tilecrop/tilecrop.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: image
tilecrop/tilecrop.php Passed 13 tests
The main PHP file in "TileCrop" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
136 characters long description:
Enables images to be cropped to a specific aspect ratio w/o losing any image data. It ALSO enables upscaling of any tilecropped images.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected153 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 77 | 75 | 153 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 10.50 |
▷ Minimum method complexity | 7.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 50.00% |
▷ Protected methods | 1 | 50.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG images were not found in this plugin