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: ▼7.93ms] Passed 4 tests
Analyzing server-side resources used by ACF: Sidebar Selector
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 44.29 ▼2.77 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.98 ▼17.04 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.77 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.99 ▼9.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.99 ▼1.88 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by ACF: Sidebar Selector
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.34 ▼0.02 | 1.73 ▼0.25 | 44.13 ▼5.93 |
Dashboard /wp-admin | 2,198 ▲21 | 5.60 ▼0.06 | 91.19 ▼10.18 | 41.78 ▼3.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▼0.02 | 38.65 ▲0.15 | 34.79 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,529 ▼5 | 23.13 ▲4.80 | 611.70 ▼33.81 | 58.43 ▼5.26 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▼0.07 | 97.57 ▼6.30 | 45.53 ▼0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-sidebar-selector-field/acf-sidebar_selector-v5.php:23
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-sidebar-selector-field/acf-sidebar_selector-v4.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-sidebar-selector-field/acf-sidebar_selector.php:15
- > 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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: sidebar, acf, custom fields
acf-sidebar-selector-field/acf-sidebar_selector.php 92% from 13 tests
The primary PHP file in "ACF: Sidebar Selector" version 3.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-sidebar-selector-field.php" instead of "acf-sidebar_selector.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin176 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 65 | 147 | 145 |
PO File | 1 | 8 | 8 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin