Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.82ms] Passed 4 tests
Analyzing server-side resources used by Dynamic Dates
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 47.59 ▲5.47 |
Dashboard /wp-admin | 3.33 ▲0.03 | 52.23 ▲6.13 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.01 ▼2.46 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 89.96 ▼4.54 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.72 ▲4.80 |
Dynamic Dates /wp-admin/options-general.php?page=dynamic-dates | 3.20 | 32.19 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dynamic Dates
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 13.28 ▼0.02 | 1.84 ▲0.05 | 50.01 ▲10.24 |
Dashboard /wp-admin | 2,210 ▲4 | 5.80 ▼0.08 | 97.15 ▼9.09 | 39.20 ▼10.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.02 | 41.96 ▲2.64 | 38.24 ▲2.75 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.16 ▲5.60 | 673.68 ▼75.96 | 58.04 ▼8.40 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.23 ▼0.06 | 102.91 ▼1.76 | 46.84 ▼0.14 |
Dynamic Dates /wp-admin/options-general.php?page=dynamic-dates | 949 | 2.03 | 29.18 | 50.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=dynamic-dates
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=dynamic-dates
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dynamic-dates/Core.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/dynamic-dates/Core.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: dynamic, times, dates, formatting, calculator...
dynamic-dates/dynamic-dates.php Passed 13 tests
"Dynamic Dates" version 2.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
A WordPress plugin that calculates relative dates dynamically in your post or page
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 detected563 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 30 | 139 | 550 |
XML | 1 | 0 | 0 | 11 |
INI | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 1 | 2.27% |
▷ Public methods | 34 | 77.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 22.73% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin