Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼141.48ms] Passed 4 tests
A check of server-side resources used by Rotating Clock Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 32.53 ▲11.39 |
Dashboard /wp-admin | 3.07 ▲0.01 | 42.85 ▼3.75 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.22 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 91.31 ▼565.55 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.78 ▲2.62 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_rot_clock |
Browser metrics Passed 4 tests
Rotating Clock Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲194 | 16.36 ▲0.51 | 12.97 ▲5.07 | 47.03 ▲0.31 |
Dashboard /wp-admin | 2,973 ▲42 | 6.01 ▲0.09 | 137.90 ▼4.78 | 105.60 ▼0.32 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 66.31 ▲1.01 | 86.29 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.79 ▲0.02 | 366.85 ▲9.53 | 101.34 ▼15.11 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.01 | 142.59 ▼6.13 | 116.30 ▼6.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 1 option in the database
- widget_rot_clock
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rotating-clock-widget/rotatingclock.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/rotating-clock-widget/rotclock.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: rotating, widget, animated, clock, ferritech
rotating-clock-widget/rotatingclock.php 85% from 13 tests
The main file in "Rotating Clock Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rotating-clock-widget.php" instead of "rotatingclock.php")
- Description: The description should be shorter than 140 characters (currently 198 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin415 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 35 | 21 | 331 |
CSS | 1 | 1 | 0 | 48 |
PHP | 2 | 5 | 25 | 36 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg.png | 35.73KB | 9.53KB | ▼ 73.32% |
images/time_top.png | 19.84KB | 9.76KB | ▼ 50.79% |
images/bg_box.png | 43.47KB | 23.00KB | ▼ 47.10% |