Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.15ms] Passed 4 tests
An overview of server-side resources used by ACF: Field Selector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.23 ▼11.66 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.67 ▼6.20 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.37 ▲1.94 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.76 ▼8.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.28 ▲2.86 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by ACF: Field Selector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.15 ▼1.50 | 1.60 ▼0.46 | 41.01 ▲0.30 |
Dashboard /wp-admin | 2,209 ▲21 | 4.80 ▼1.10 | 109.83 ▲3.15 | 42.91 ▼2.15 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 39.80 ▲4.87 | 36.51 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▼10 | 23.14 ▲5.08 | 662.91 ▲30.76 | 77.00 ▲16.81 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.01 | 94.31 ▼15.32 | 40.28 ▼1.85 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
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 no errors were found, this is by no means 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
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-field-selector-field/acf-field_selector.php:19
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-field-selector-field/acf-field_selector-v4.php:23
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-field-selector-field/acf-field_selector-v5.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: fields, google, acf
acf-field-selector-field/acf-field_selector.php 92% from 13 tests
The main PHP file in "ACF: Field Selector" ver. 4.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-field-selector-field.php" instead of "acf-field_selector.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
No dangerous file extensions were detected803 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 168 | 346 | 431 |
JavaScript | 1 | 69 | 29 | 164 |
CSS | 1 | 18 | 0 | 103 |
PO File | 2 | 36 | 40 | 102 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
No PNG files were detected