Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼12.29ms] Passed 4 tests
An overview of server-side resources used by CoolClock - a Javascript Analog Clock
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 50.40 ▲4.35 |
Dashboard /wp-admin | 3.46 ▲0.11 | 51.82 ▼19.17 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 49.91 ▼3.88 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 87.30 ▼30.25 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 41.69 ▲4.14 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_coolclock-widget |
Browser metrics Passed 4 tests
CoolClock - a Javascript Analog Clock: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.36 | 1.84 ▼0.19 | 42.53 ▼0.31 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.02 | 94.01 ▼0.16 | 39.91 ▼8.40 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.09 | 37.47 ▲0.81 | 36.23 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.96 ▲0.91 | 703.63 ▲7.86 | 53.00 ▲5.09 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.20 ▼0.02 | 102.96 ▼2.67 | 44.14 ▼1.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_coolclock-widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/coolclock/includes/class-coolclock-widget.php:6
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: widget, analog clock, clock, shortcode, logarithmic clock...
coolclock/coolclock.php 85% from 13 tests
This is the main PHP file of "CoolClock - a Javascript Analog Clock" version 4.3.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: The domain path must begin with a forward slash character ("/languages")
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
No dangerous file extensions were detected4,616 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 185 | 243 | 2,461 |
JavaScript | 7 | 211 | 268 | 1,111 |
PO File | 6 | 440 | 451 | 1,028 |
CSS | 2 | 2 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 36.67 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 6.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 14 | 73.68% |
▷ Public methods | 19 | 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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin