Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/local-time-clock/local_time_clock.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; local_time_clock has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼55.00ms] Passed 4 tests
Analyzing server-side resources used by Local Time Clock
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.12 ▼39.40 |
Dashboard /wp-admin | 2.19 ▼1.11 | 7.22 ▼44.80 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 7.52 ▼39.16 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 5.53 ▼96.64 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 6.62 ▼30.21 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_local_time_clock |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Local Time Clock
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.01 | 1.82 ▼0.06 | 44.06 ▼0.34 |
Dashboard /wp-admin | 2,195 ▲21 | 5.54 ▼0.03 | 97.75 ▼7.10 | 43.49 ▼1.07 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.01 | 37.26 ▲2.88 | 36.05 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.06 ▼0.10 | 674.46 ▲30.24 | 54.38 ▲10.30 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.24 ▲0.03 | 109.32 ▲7.74 | 49.41 ▲6.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/local-time-clock/local_time_clock.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; local_time_clock has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_local_time_clock
Smoke tests 75% 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 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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/local-time-clock/local_time_clock.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Digital Basic clock), #2 (Analog Basic clock), #3 (Analog Flag clock), #4 (Analog World Globe clock), #5 (Analog Shiny 3D clock), #6 (Digital Time and Date clock), #7 (Digital Flip-over clock), #8 (Digital Stick-it Note clock), #9 (Admin Panel)
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
local-time-clock/local_time_clock.php 92% from 13 tests
"Local Time Clock" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("local-time-clock.php" instead of "local_time_clock.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected452 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 189 | 108 | 452 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin