Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼312.44ms] Passed 4 tests
Server-side resources used by Advanced Custom Fields: Restrict Color Picker Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 54.64 ▲4.43 |
Dashboard /wp-admin | 3.47 ▲0.06 | 34.81 ▲1.82 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 38.09 ▲2.76 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 94.62 ▼1,257.78 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 26.19 ▲3.45 |
Restrict Color Picker Options /wp-admin/edit.php?post_type=acf-field-group&page=acf-restrict-color-picker | 3.14 | 18.30 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Fields: Restrict Color Picker Options: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 16.25 ▲0.56 | 5.77 ▼0.12 | 2.77 ▲0.31 |
Dashboard /wp-admin | 2,895 ▲34 | 6.13 ▼0.07 | 117.91 ▼16.36 | 155.57 ▼7.56 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.24 ▲0.01 | 71.02 ▲7.41 | 152.96 ▲9.97 |
Add New Post /wp-admin/post-new.php | 1,781 ▲120 | 22.48 ▲6.33 | 418.84 ▲22.96 | 157.25 ▲0.14 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▼0.01 | 141.94 ▲1.05 | 184.30 ▼0.85 |
Restrict Color Picker Options /wp-admin/edit.php?post_type=acf-field-group&page=acf-restrict-color-picker | 28 | 0.94 | 0.04 | 17.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/acf-restrict-color-picker/admin.php:153
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=acf-field-group&page=acf-restrict-color-picker
- > Network (severe)
wp-admin/edit.php?post_type=acf-field-group&page=acf-restrict-color-picker - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: color, custom fields, acf
acf-restrict-color-picker/acf-restrict-color-picker.php 92% from 13 tests
Analyzing the main PHP file in "Advanced Custom Fields: Restrict Color Picker Options" version 1.3.1
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin268 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 63 | 97 | 214 |
CSS | 1 | 8 | 0 | 44 |
JavaScript | 1 | 3 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.24 |
▷ 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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 17.65% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin