Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.34ms] Passed 4 tests
An overview of server-side resources used by Current Date for Posts, Pages, or Template
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.84 ▼0.75 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.68 ▼4.47 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 47.52 ▼6.58 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.63 ▼13.56 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 38.42 ▼0.45 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 10 new options
New WordPress options |
---|
Current_DateInputField2 |
Current_DateInputField1 |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Current_DateInputField3 |
widget_current_date |
Browser metrics Passed 4 tests
A check of browser resources used by Current Date for Posts, Pages, or Template
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲44 | 14.38 ▼0.02 | 1.87 ▼0.44 | 44.02 ▼0.36 |
Dashboard /wp-admin | 2,209 ▲21 | 5.83 ▲0.96 | 115.29 ▲11.34 | 78.19 ▲33.09 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.01 ▼0.03 | 33.86 ▼6.88 | 32.71 ▼5.47 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 23.28 ▲5.57 | 775.51 ▲116.63 | 53.85 ▼12.57 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.21 ▲0.03 | 101.28 ▼1.83 | 62.22 ▲17.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 10 options in the database
- Current_DateInputField3
- widget_recent-comments
- widget_recent-posts
- Current_DateInputField2
- theysaidso_admin_options
- Current_DateInputField1
- widget_theysaidso_widget
- widget_current_date
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/current-date-for-posts-pages-or-template/CustomCode.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/current-date-for-posts-pages-or-template/Settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: date shortcode, current time, current date
current-date-for-posts-pages-or-template/CurrentDate-GSF.php 92% from 13 tests
"Current Date for Posts, Pages, or Template" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("current-date-for-posts-pages-or-template.php" instead of "CurrentDate-GSF.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected349 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 51 | 42 | 349 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.72MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 133.33KB | 41.64KB | ▼ 68.77% |
screenicon.png | 10.21KB | 4.42KB | ▼ 56.75% |
screenshot-1.png | 486.75KB | 151.56KB | ▼ 68.86% |
promo.png | 32.45KB | 9.98KB | ▼ 69.24% |
screenshot-2.png | 44.53KB | 14.66KB | ▼ 67.08% |