Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.11MB] [CPU: ▼14.32ms] Passed 4 tests
An overview of server-side resources used by WP User Timezone
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 11.75 ▼27.25 |
Dashboard /wp-admin | 3.42 ▲0.07 | 44.23 ▼24.76 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.72 ▲0.21 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.32 ▼5.48 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.00 ▲3.35 |
WP User Timezone /wp-admin/options-general.php?page=wp-user-timezone | 3.33 | 30.05 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP User Timezone
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 5,307 ▲2,536 | 17.16 ▲2.85 | 34.57 ▲32.61 | 49.06 ▲5.37 |
Dashboard /wp-admin | 2,213 ▲25 | 5.90 ▲0.01 | 100.00 ▼15.61 | 40.47 ▼1.02 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.03 | 40.21 ▼0.01 | 31.07 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.37 ▲0.20 | 669.25 ▲16.55 | 50.27 ▲0.94 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.15 ▼0.04 | 98.17 ▼6.81 | 44.04 ▼2.72 |
WP User Timezone /wp-admin/options-general.php?page=wp-user-timezone | 926 | 2.17 | 23.75 | 25.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_User_Timezone_Options' not found in wp-content/plugins/wp-user-timezone/admin/partials/wp-user-timezone-admin-display.php:15
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Plugin configuration) image not found
wp-user-timezone/wp-user-timezone.php Passed 13 tests
"WP User Timezone" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
83 characters long description:
Enables the date/time on the wordpress front-end to be displayed in user's timezone
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 plugin640 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 156 | 656 | 544 |
JavaScript | 3 | 14 | 30 | 96 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 3 | 7.14% |
▷ Public methods | 36 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 41.35KB | 23.38KB | ▼ 43.45% |