Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.08ms] Passed 4 tests
An overview of server-side resources used by Advanced Custom Fields: Limiter Field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.66 ▼3.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.45 ▼3.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.62 ▼10.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.01 ▼21.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.85 ▲0.97 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: Limiter Field
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▲0.13 | 1.87 ▲0.26 | 44.52 ▲5.02 |
Dashboard /wp-admin | 2,192 ▲12 | 5.57 ▼0.10 | 84.96 ▼10.36 | 41.11 ▼6.97 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.00 | 40.26 ▲2.24 | 37.67 ▼3.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.03 ▲4.70 | 663.67 ▲3.98 | 48.99 ▼17.50 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▼0.05 | 100.35 ▼6.95 | 43.14 ▲0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-limiter-field/limiter-v4.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field_wysiwyg' not found in wp-content/plugins/advanced-custom-fields-limiter-field/limiter-wysiwyg-v4.php:7
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-limiter-field/limiter-v5.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_Field' not found in wp-content/plugins/advanced-custom-fields-limiter-field/limiter-v3.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-limiter-field/acf-limiter.php:21
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please describe screenshot #2 in advanced-custom-fields-limiter-field/assets to your readme.txt
advanced-custom-fields-limiter-field/acf-limiter.php 85% from 13 tests
This is the main PHP file of "Advanced Custom Fields: Limiter Field" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-custom-fields-limiter-field.php" instead of "acf-limiter.php")
- Description: The description should be shorter than 140 characters (currently 211 characters long)
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
Good job! No executable or dangerous file extensions detected525 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 454 | 836 | 424 |
JavaScript | 2 | 86 | 42 | 91 |
CSS | 2 | 1 | 4 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 4.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin