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.00MB] [CPU: ▼147.18ms] Passed 4 tests
An overview of server-side resources used by Advanced Custom Fields: Image Crop Add-on
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 25.59 ▼1.17 |
Dashboard /wp-admin | 3.07 ▲0.00 | 36.97 ▼3.71 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 33.47 ▼6.67 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 72.30 ▼577.17 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 25.09 ▲0.02 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: Image Crop Add-on
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲65 | 15.97 ▲0.33 | 8.95 ▲3.73 | 71.75 ▼16.58 |
Dashboard /wp-admin | 2,930 ▲34 | 6.10 ▼0.05 | 113.66 ▼19.35 | 162.26 ▼8.33 |
Posts /wp-admin/edit.php | 2,743 ▲3 | 3.23 ▲0.01 | 64.37 ▲0.94 | 134.84 ▲4.75 |
Add New Post /wp-admin/post-new.php | 3,815 ▼1 | 19.68 ▲0.78 | 446.80 ▲29.72 | 163.67 ▼3.06 |
Media Library /wp-admin/upload.php | 1,749 ▼6 | 5.50 ▼0.03 | 153.06 ▲13.27 | 188.28 ▲4.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'acf_field_image' not found in wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v4.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_Field' not found in wp-content/plugins/acf-image-crop-add-on/image_crop-v3.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/acf-image-crop-add-on/acf-image-crop.php:16
- > PHP Fatal error
Uncaught Error: Class 'acf_field_image' not found in wp-content/plugins/acf-image-crop-add-on/acf-image-crop-v5.php:3
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: crop, afc, advanced custom fields, image, image crop
acf-image-crop-add-on/acf-image-crop.php 92% from 13 tests
The primary PHP file in "Advanced Custom Fields: Image Crop Add-on" version 1.4.12 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-image-crop-add-on.php" instead of "acf-image-crop.php")
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 plugin2,571 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 481 | 844 | 1,297 |
JavaScript | 5 | 396 | 283 | 1,049 |
PO File | 1 | 62 | 163 | 143 |
CSS | 2 | 5 | 14 | 79 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 33.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin