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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼291.90ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Fields: Image Size Select Field
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.26 ▲3.70 |
Dashboard /wp-admin | 3.41 ▲0.01 | 33.59 ▼1.03 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 38.98 ▲3.13 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 104.85 ▼1,165.19 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 24.93 ▼4.49 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Custom Fields: Image Size Select Field
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.83 ▲0.13 | 5.73 ▼1.41 | 2.18 ▼0.71 |
Dashboard /wp-admin | 2,888 ▲27 | 6.10 ▼0.06 | 115.52 ▼20.09 | 150.72 ▼7.29 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.24 ▲0.01 | 60.74 ▼1.78 | 131.59 ▼8.80 |
Add New Post /wp-admin/post-new.php | 1,758 ▲41 | 21.27 ▲0.06 | 443.82 ▲39.65 | 156.93 ▼2.06 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.54 ▲0.03 | 141.70 ▲4.35 | 182.99 ▼10.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: image size, acf, advanced custom fields
acf-image-size-select/acf-image-size-select.php Passed 13 tests
"Advanced Custom Fields: Image Size Select Field" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
70 characters long description:
Field to select registered image sizes within the WordPress dashboard.
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 detected161 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 68 | 65 | 161 |
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.46 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin