Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼140.45ms] Passed 4 tests
This is a short check of server-side resources used by What Time Is It?
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.30 ▲10.86 |
Dashboard /wp-admin | 3.07 ▲0.01 | 42.75 ▲3.41 |
Posts /wp-admin/edit.php | 3.12 ▲0.00 | 35.86 ▼15.62 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 90.18 ▼551.59 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.35 ▲2.02 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_what_time_is_it |
Browser metrics Passed 4 tests
Checking browser requirements for What Time Is It?
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,683 ▲46 | 15.92 ▲0.41 | 9.69 ▲0.34 | 52.02 ▲1.77 |
Dashboard /wp-admin | 2,973 ▲39 | 6.02 ▲0.07 | 137.33 ▼4.14 | 109.00 ▼6.42 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.72 ▲0.00 | 62.41 ▼0.02 | 89.82 ▼5.22 |
Add New Post /wp-admin/post-new.php | 1,683 ▼374 | 18.76 ▼0.65 | 369.02 ▼12.25 | 98.17 ▼10.59 |
Media Library /wp-admin/upload.php | 1,807 ▲3 | 5.05 ▲0.03 | 138.16 ▼2.61 | 117.85 ▼2.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 1 option
- widget_what_time_is_it
Smoke tests 75% 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 50% 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/what-time-is-it/what-time-is-it.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: clock, world clock, analog clock, widget, digital clock...
what-time-is-it/what-time-is-it.php Passed 13 tests
The primary PHP file in "What Time Is It?" version 1.3 is used by WordPress to initiate all plugin functionality
70 characters long description:
Create a beautiful Wordpress Widget to show your custom date and time.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin342 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 67 | 227 |
CSS | 1 | 3 | 7 | 83 |
JavaScript | 2 | 3 | 11 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 57.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 42.86% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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 images were found in this plugin