Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.10ms] Passed 4 tests
A check of server-side resources used by ACF Color Swatches
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 46.60 ▲1.84 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.04 ▼4.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.59 ▼11.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.34 ▼14.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.49 ▼2.21 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by ACF Color Swatches
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.32 | 1.78 ▼0.27 | 43.77 ▲0.61 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▼0.05 | 83.74 ▼10.61 | 38.69 ▼6.18 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.99 ▲0.01 | 38.52 ▼1.03 | 33.53 ▼12.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.18 ▲0.20 | 677.99 ▲6.07 | 51.58 ▼3.04 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.23 ▲0.02 | 110.46 ▼0.27 | 45.50 ▼1.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- 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 shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/acf-color-swatches/acf-swatch.php:16
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-color-swatches/acf-swatch-v4.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tested up to: The plugin version is formatted incorrectly
acf-color-swatches/acf-swatch.php 92% from 13 tests
The main PHP file in "ACF Color Swatches" ver. 1.0.7 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: It is recommended to name the main PHP file as the plugin slug ("acf-color-swatches.php" instead of "acf-swatch.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected658 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 95 | 259 | 381 |
Markdown | 4 | 62 | 0 | 143 |
JavaScript | 1 | 28 | 3 | 61 |
CSS | 1 | 10 | 0 | 59 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/checkers.png | 0.22KB | 0.10KB | ▼ 56.58% |
images/swatches.png | 24.82KB | 6.99KB | ▼ 71.85% |
images/choices.png | 39.20KB | 11.60KB | ▼ 70.41% |