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.25MB] [CPU: ▼5.87ms] Passed 4 tests
An overview of server-side resources used by Universal Clocks
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.68 ▼3.01 |
Dashboard /wp-admin | 3.61 ▲0.26 | 46.79 ▼13.69 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 51.23 ▼1.19 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 93.42 ▼4.99 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 34.65 ▼1.77 |
Settings /wp-admin/admin.php?page=universal-clocks-settings | 3.50 | 33.04 |
All Clocks /wp-admin/edit.php?post_type=universal_clocks | 3.57 | 33.77 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 103 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Universal Clocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲192 | 13.67 ▼0.96 | 8.75 ▲7.17 | 69.79 ▲30.50 |
Dashboard /wp-admin | 2,250 ▲79 | 5.85 ▲0.29 | 85.85 ▼3.03 | 41.20 ▲1.37 |
Posts /wp-admin/edit.php | 2,154 ▲54 | 2.30 ▲0.29 | 40.79 ▲0.50 | 34.88 ▼5.77 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 23.48 ▲0.42 | 589.17 ▼76.47 | 35.21 ▼28.23 |
Media Library /wp-admin/upload.php | 1,452 ▲52 | 4.50 ▲0.26 | 104.89 ▲5.67 | 45.96 ▲2.27 |
Settings /wp-admin/admin.php?page=universal-clocks-settings | 877 | 1.87 | 29.24 | 35.84 |
All Clocks /wp-admin/edit.php?post_type=universal_clocks | 1,139 | 2.36 | 32.35 | 25.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: watches, digital clock, universal clock, analog clock
universal-clocks/universal-clocks.php Passed 13 tests
The main PHP script in "Universal Clocks" version 1.2.0 is automatically included on every request by WordPress
58 characters long description:
A plugin to show multiple clocks with different time zones
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 detected2,374 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 245 | 705 | 1,645 |
JavaScript | 3 | 82 | 207 | 492 |
CSS | 3 | 13 | 5 | 237 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 4 | 9.52% |
▷ Public methods | 37 | 88.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.90% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
78 compressed PNG files occupy 0.37MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/singleclock.png | 9.04KB | 8.88KB | ▼ 1.86% |
admin/images/circle-9.png | 4.95KB | 1.91KB | ▼ 61.42% |
public/clock-templates/size-200/images/jcgmt-3-clock_hour.png | 0.75KB | 0.73KB | ▼ 3.00% |
public/clock-templates/size-200/images/jcgmt-9-clock_face.png | 1.10KB | 1.12KB | 0.00% |
public/clock-templates/size-200/images/jcgmt-10-clock_hour.png | 1.14KB | 1.14KB | 0.09% |