Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▼138.19ms] Passed 4 tests
A check of server-side resources used by WP Date and Time Shortcode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.08 ▲0.24 | 50.39 ▲17.65 |
Dashboard /wp-admin | 3.38 ▲0.32 | 52.08 ▲7.93 |
Posts /wp-admin/edit.php | 3.42 ▲0.32 | 46.60 ▲1.40 |
Add New Post /wp-admin/post-new.php | 5.66 ▲0.23 | 92.92 ▼564.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.25 | 34.83 ▲2.77 |
Home /wp-admin/admin.php?page=denra-plugins | 3.22 | 30.48 |
WP Date and Time Shortcode /wp-admin/admin.php?page=denra-plugin-wp-date-and-time-shortcode | 3.22 | 31.18 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Date and Time Shortcode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,810 ▲214 | 15.81 ▼0.14 | 12.02 ▲3.39 | 54.93 ▲3.21 |
Dashboard /wp-admin | 3,098 ▲164 | 5.93 ▼0.04 | 151.21 ▲0.99 | 118.35 ▲8.44 |
Posts /wp-admin/edit.php | 2,870 ▲131 | 2.70 ▲0.01 | 68.64 ▼1.13 | 87.41 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,700 ▼172 | 18.88 ▼0.44 | 364.12 ▼0.21 | 102.74 ▼11.52 |
Media Library /wp-admin/upload.php | 1,938 ▲128 | 5.03 ▼0.01 | 140.99 ▼7.25 | 118.35 ▲1.75 |
Home /wp-admin/admin.php?page=denra-plugins | 1,172 | 2.22 | 61.95 | 80.45 |
WP Date and Time Shortcode /wp-admin/admin.php?page=denra-plugin-wp-date-and-time-shortcode | 1,152 | 2.22 | 55.98 | 74.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-date-and-time-shortcode/denra-plugins/classes/PluginHooks.php+54
Trying to access array offset on value of type bool
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Denra\\Plugins\\PluginHooks' not found in wp-content/plugins/wp-date-and-time-shortcode/plugin/classes/WPDateAndTimeShortcodeHooks.php:17
- > PHP Fatal error
Uncaught Error: Class 'Denra\\Plugins\\Basic' not found in wp-content/plugins/wp-date-and-time-shortcode/denra-plugins/classes/BasicExtra.php:22
- > PHP Fatal error
Uncaught Error: Class 'Denra\\Plugins\\BasicExtra' not found in wp-content/plugins/wp-date-and-time-shortcode/denra-plugins/classes/Framework.php:22
- > PHP Fatal error
Uncaught Error: Class 'Denra\\Plugins\\Plugin' not found in wp-content/plugins/wp-date-and-time-shortcode/plugin/classes/WPDateAndTimeShortcode.php:17
- > PHP Fatal error
Uncaught Error: Class 'Denra\\Plugins\\BasicExtra' not found in wp-content/plugins/wp-date-and-time-shortcode/denra-plugins/classes/Plugin.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
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 to be fixed:
- Tags: There are too many tags (24 tag instead of maximum 10)
wp-date-and-time-shortcode/wp-date-and-time-shortcode.php 92% from 13 tests
The main PHP script in "WP Date and Time Shortcode" version 2.5.3 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin877 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 256 | 189 | 779 |
CSS | 1 | 15 | 9 | 70 |
PO File | 1 | 5 | 11 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 20.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 11 | 33.33% |
▷ Public methods | 33 | 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 | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin