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.01MB] [CPU: ▼295.59ms] Passed 4 tests
A check of server-side resources used by ACF: Dynamic Year Select Field
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.76 ▲0.67 |
Dashboard /wp-admin | 3.43 ▲0.02 | 34.41 ▲0.51 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 45.91 ▲8.56 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.08 | 97.91 ▼1,174.39 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 23.29 ▼9.14 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for ACF: Dynamic Year Select Field
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲41 | 15.91 ▼0.10 | 6.28 ▼0.30 | 2.21 ▼0.19 |
Dashboard /wp-admin | 2,892 ▲37 | 6.11 ▼0.10 | 116.29 ▼16.61 | 155.31 ▼13.33 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.36 ▼0.01 | 64.50 ▲1.86 | 140.65 ▼7.36 |
Add New Post /wp-admin/post-new.php | 1,661 ▼7 | 16.66 ▼1.42 | 408.13 ▲7.76 | 155.58 ▼1.87 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.50 ▼0.01 | 139.60 ▲7.65 | 193.21 ▲6.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-dynamic-year-select-field/acf-dynamic-year-select-v4.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/acf-dynamic-year-select-field/acf-dynamic_year_select.php:13
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-dynamic-year-select-field/acf-dynamic-year-select-v5.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== acf-dynamic-year-select-field ===
)
acf-dynamic-year-select-field/acf-dynamic_year_select.php 85% from 13 tests
The main PHP file in "ACF: Dynamic Year Select Field" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-dynamic-year-select-field.php" instead of "acf-dynamic_year_select.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
Success! There were no dangerous files found in this plugin618 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 108 | 319 | 566 |
CSS | 1 | 0 | 0 | 26 |
JavaScript | 1 | 5 | 1 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
1 PNG file occupies 0.39MB with 0.26MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 404.32KB | 136.49KB | ▼ 66.24% |