Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼2.45MB] [CPU: ▼349.17ms] Passed 4 tests
Server-side resources used by Advanced Dates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.92 ▼1.59 | 3.95 ▼52.00 |
Dashboard /wp-admin | 1.94 ▼1.47 | 3.59 ▼39.48 |
Posts /wp-admin/edit.php | 1.94 ▼1.70 | 4.24 ▼39.75 |
Add New Post /wp-admin/post-new.php | 1.94 ▼5.03 | 5.04 ▼1,265.46 |
Media Library /wp-admin/upload.php | 1.94 ▼1.36 | 4.86 ▼34.38 |
Advanced Dates /wp-admin/options-general.php?page=advanced_dates | 1.94 | 3.96 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Dates
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,798 ▲76 | 15.91 ▲0.21 | 7.14 ▲1.62 | 2.72 ▲0.37 |
Dashboard /wp-admin | 2,914 ▲53 | 6.16 ▼0.07 | 116.76 ▼18.99 | 196.41 ▲35.36 |
Posts /wp-admin/edit.php | 2,700 ▲9 | 3.26 ▲0.01 | 64.41 ▲2.70 | 136.89 ▼38.46 |
Add New Post /wp-admin/post-new.php | 1,655 ▼6 | 20.40 ▲4.11 | 383.79 ▼38.61 | 181.33 ▲23.42 |
Media Library /wp-admin/upload.php | 1,710 ▲12 | 5.53 ▲0.01 | 153.54 ▲9.73 | 217.94 ▲33.91 |
Advanced Dates /wp-admin/options-general.php?page=advanced_dates | 1,214 | 2.66 | 57.18 | 160.01 |
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
You still need to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5768
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the functions handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=advanced_dates
- > User notice in wp-includes/functions.php+5768
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the functions handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-dates/advanced-dates.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=advanced_dates
- > Javascript (severe) in unknown
/wp-content/plugins/advanced-dates/js/functions.js?ver=5.9.2 64:12 Uncaught TypeError: Cannot read properties of null (reading 'checked')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
advanced-dates/advanced-dates.php 92% from 13 tests
The principal PHP file in "Advanced Dates" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 309 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin312 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 22 | 215 |
JavaScript | 1 | 1 | 16 | 66 |
CSS | 1 | 0 | 13 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
There were not PNG files found in your plugin