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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.86ms] Passed 4 tests
Analyzing server-side resources used by Wall Clock
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.58 ▲2.78 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.84 ▼12.54 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.79 ▲0.13 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 79.95 ▼10.89 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.02 ▼0.12 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wall Clock
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 13.95 ▼0.40 | 9.11 ▲7.33 | 43.64 ▲2.89 |
Dashboard /wp-admin | 2,225 ▲34 | 4.85 ▼0.06 | 97.76 ▼5.22 | 40.15 ▼2.89 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.00 ▼0.01 | 36.33 ▲1.06 | 34.31 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,560 ▲41 | 18.30 ▼4.92 | 614.76 ▲42.42 | 64.06 ▲9.85 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.24 ▲0.03 | 101.96 ▲5.11 | 43.91 ▲1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wall-clocks/wall-clock.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function myprefix_get_theme_option() in wp-content/plugins/wall-clocks/option-data.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: countdown, clock, wall clock
wall-clocks/wall-clock.php 92% from 13 tests
The main PHP file in "Wall Clock" ver. 2.0 adds more information about the plugin and also serves as the entry point for this 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 ("wall-clocks.php" instead of "wall-clock.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin724 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 108 | 63 | 492 |
PHP | 3 | 83 | 78 | 184 |
CSS | 1 | 1 | 0 | 48 |
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.14 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 6 | 85.71% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/jcgmt-3-clock_sec.png | 1.77KB | 0.76KB | ▼ 57.03% |
images/jcgmt-3-clock_min.png | 1.20KB | 0.22KB | ▼ 81.46% |
images/favicon.png | 7.65KB | 8.74KB | 0.00% |
images/jcgmt-1-clock_face.png | 7.64KB | 4.56KB | ▼ 40.39% |
images/jcgmt-clock_label.png | 1.18KB | 0.51KB | ▼ 56.58% |