Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/date-and-time-widget/date-time.php+373
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼59.73ms] Passed 4 tests
A check of server-side resources used by Date and Time Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.19 ▼35.79 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.10 ▼51.93 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.55 ▼49.04 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.59 ▼102.16 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 4.84 ▼30.51 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_date-time |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Date and Time Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲158 | 13.99 ▼0.38 | 5.21 ▲3.43 | 41.84 ▼0.67 |
Dashboard /wp-admin | 2,227 ▲39 | 5.09 ▲0.14 | 104.38 ▼12.66 | 42.30 ▼3.36 |
Posts /wp-admin/edit.php | 2,091 ▲5 | 2.34 ▲0.32 | 36.05 ▼1.50 | 37.77 ▲6.42 |
Add New Post /wp-admin/post-new.php | 1,540 ▲6 | 23.39 ▲0.17 | 679.06 ▲15.31 | 39.35 ▼13.07 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.34 ▲0.14 | 115.72 ▲19.79 | 49.34 ▲7.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/date-and-time-widget/date-time.php+373
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_date-time
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/date-and-time-widget/views/widget.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: text_color in wp-content/plugins/date-and-time-widget/views/widget.php on line 2
- > PHP Notice
Undefined variable: font_family in wp-content/plugins/date-and-time-widget/views/widget.php on line 4
- > PHP Notice
Undefined variable: time_format in wp-content/plugins/date-and-time-widget/views/widget.php on line 11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/date-and-time-widget/views/admin.php:3
- > PHP Notice
Undefined variable: args in wp-content/plugins/date-and-time-widget/views/widget.php on line 10
- > PHP Notice
Undefined variable: background_color in wp-content/plugins/date-and-time-widget/views/widget.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/date-and-time-widget/date-time.php:23
- > PHP Notice
Undefined variable: date_format in wp-content/plugins/date-and-time-widget/views/widget.php on line 12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/date-and-time-widget/views/widget.php on line 10
- > PHP Notice
Undefined variable: font_size in wp-content/plugins/date-and-time-widget/views/widget.php on line 5
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== date-and-time-widget ===
)
date-and-time-widget/date-time.php 85% from 13 tests
This is the main PHP file of "Date and Time Widget" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("date-and-time-widget.php" instead of "date-time.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected353 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 137 | 258 |
JavaScript | 2 | 10 | 5 | 85 |
CSS | 2 | 1 | 0 | 10 |
PHP code Passed 2 tests
An short overview of 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.12 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected