Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.58ms] Passed 4 tests
Analyzing server-side resources used by Advanced Custom Fields: Validated Field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.21 ▼1.15 |
Dashboard /wp-admin | 3.31 ▼0.03 | 50.48 ▼15.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 53.29 ▼0.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.01 ▼13.45 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 41.10 ▲2.60 |
Server storage [IO: ▲1.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: Validated Field
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.22 ▼1.06 | 4.65 ▲2.66 | 44.66 ▲3.19 |
Dashboard /wp-admin | 2,221 ▲15 | 5.84 ▲0.97 | 98.68 ▼3.42 | 36.67 ▼7.18 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.04 | 38.09 ▲0.45 | 36.74 ▲6.03 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.17 ▼0.10 | 619.33 ▼43.36 | 72.11 ▲23.08 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.14 ▼0.07 | 100.89 ▼1.92 | 46.21 ▲0.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/validated-field-for-acf/validated_field.php:28
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
validated-field-for-acf/validated_field.php 92% from 13 tests
This is the main PHP file of "Advanced Custom Fields: Validated Field" version 1.7.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("validated-field-for-acf.php" instead of "validated_field.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected7,277 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 236 | 511 | 1,762 |
CSS | 3 | 1 | 13 | 1,668 |
Sass | 13 | 23 | 24 | 1,256 |
LESS | 13 | 23 | 33 | 1,247 |
SVG | 1 | 0 | 0 | 520 |
JavaScript | 17 | 47 | 90 | 463 |
PO File | 2 | 143 | 178 | 361 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 119.50 |
▷ Minimum class complexity | 100.00 |
▷ Maximum class complexity | 139.00 |
Average method complexity | 5.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.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 | 59 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 96.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.39% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin