Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.69ms] Passed 4 tests
Server-side resources used by Use Client's Time Zone
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.31 ▼2.37 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.47 ▼2.10 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.87 ▼5.14 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.66 ▼29.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.76 ▲6.49 |
Use Client's Time Zone /wp-admin/options-general.php?page=use_clients_timezone_plugin | 3.23 | 31.75 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
use_clients_timezone_fallback_timezone |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Use Client's Time Zone
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,059 ▲298 | 14.03 ▼0.59 | 15.60 ▲13.83 | 38.43 ▼8.41 |
Dashboard /wp-admin | 2,196 ▲16 | 5.51 ▼0.16 | 82.91 ▼12.12 | 41.86 ▲3.14 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.02 | 42.06 ▼0.82 | 36.62 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.34 ▼4.73 | 659.80 ▼40.26 | 70.38 ▲12.57 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.01 | 96.82 ▼13.53 | 40.59 ▼6.13 |
Use Client's Time Zone /wp-admin/options-general.php?page=use_clients_timezone_plugin | 828 | 1.99 | 23.95 | 34.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- use_clients_timezone_fallback_timezone
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/use-clients-time-zone/use-clients-timezone-class.inc.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Settings page.)
use-clients-time-zone/use-clients-timezone.php 85% from 13 tests
The primary PHP file in "Use Client's Time Zone" version 1.1.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("use-clients-time-zone.php" instead of "use-clients-timezone.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 970 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin897 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 89 | 47 | 472 |
Markdown | 3 | 102 | 0 | 175 |
JSON | 4 | 0 | 0 | 114 |
PHP | 3 | 23 | 37 | 89 |
HTML | 2 | 0 | 0 | 37 |
YAML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 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
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 59.84KB | 23.43KB | ▼ 60.85% |