Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.21ms] Passed 4 tests
Analyzing server-side resources used by Shortcode for Current Date
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.99 ▼1.84 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.20 ▼4.63 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.88 ▼2.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 100.23 ▲2.88 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.93 ▲0.38 |
Shortcode for Current Date /wp-admin/index.php?page=sfcd_welcome_menu_page | 3.24 | 31.53 |
Shortcode for Current Date /wp-admin/options-general.php?page=sfcd_menu_page | 3.26 | 33.11 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
sfcd_installDate |
widget_theysaidso_widget |
sfcd_review_notify |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Shortcode for Current Date
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.16 ▼1.14 | 1.83 ▼0.20 | 42.48 ▼14.89 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.01 | 97.13 ▼18.90 | 39.37 ▼9.60 |
Posts /wp-admin/edit.php | 2,093 ▲22 | 2.00 ▼0.01 | 37.01 ▼1.75 | 33.63 ▼4.80 |
Add New Post /wp-admin/post-new.php | 6,418 ▲4,883 | 28.36 ▲4.97 | 874.24 ▲195.10 | 36.26 ▼14.90 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.13 ▼0.05 | 99.34 ▼5.83 | 42.13 ▼3.49 |
Shortcode for Current Date /wp-admin/index.php?page=sfcd_welcome_menu_page | 830 | 2.02 | 25.16 | 51.86 |
Shortcode for Current Date /wp-admin/options-general.php?page=sfcd_menu_page | 1,624 | 2.02 | 23.75 | 44.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- sfcd_review_notify
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
4 plugin tags: current date, year, shortcode, month
shortcode-for-current-date/shortcode-for-current-date.php 92% from 13 tests
"Shortcode for Current Date" version 2.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected741 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 147 | 90 | 554 |
CSS | 2 | 2 | 0 | 99 |
JavaScript | 6 | 8 | 5 | 88 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 15 | 88.24% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-128x128.png | 4.86KB | 1.67KB | ▼ 65.74% |