Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.19ms] Passed 4 tests
This is a short check of server-side resources used by Time Zone Converter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 43.69 ▲3.54 |
Dashboard /wp-admin | 3.41 ▲0.06 | 46.52 ▼13.46 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.29 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 90.75 ▼13.84 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.83 ▲0.12 |
View All Converters /wp-admin/edit.php?post_type=time-zone-converter | 3.38 | 41.02 |
Add New Converter /wp-admin/post-new.php?post_type=time-zone-converter | 3.97 | 62.34 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
tzc_welcome |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Time Zone Converter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 14.75 ▲0.48 | 1.76 ▲0.15 | 43.46 ▲0.47 |
Dashboard /wp-admin | 2,224 ▲36 | 5.79 ▲0.70 | 106.16 ▲4.68 | 40.88 ▼2.73 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▲0.03 | 39.82 ▲1.58 | 34.76 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.17 ▲5.58 | 648.42 ▼34.07 | 53.55 ▼1.78 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.20 ▼0.04 | 95.07 ▼11.87 | 42.37 ▼4.71 |
View All Converters /wp-admin/edit.php?post_type=time-zone-converter | 1,126 | 2.39 | 35.25 | 27.86 |
Add New Converter /wp-admin/post-new.php?post_type=time-zone-converter | 7,949 | 4.56 | 114.17 | 42.48 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- tzc_welcome
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/time-zone-converter/classes/class-timezone-functions.php
- > /wp-content/plugins/time-zone-converter/time-zone-converter.php
- > /wp-content/plugins/time-zone-converter/classes/class-timezone-converter.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/time-zone-converter/templates/admin-panel.php:45
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=time-zone-converter
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: tzc_plugin_url is not defined" "ReferenceError: tzc_plugin_url is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/time-zone-converter/assets/js/scripts.js?ver=6.3.1:5:17)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/edit.php?post_type=time-zone-converter
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught ReferenceError: tzc_plugin_url is not defined
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: timezone converter, time zone converter, time difference calculator
time-zone-converter/time-zone-converter.php Passed 13 tests
"Time Zone Converter" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
Time Zone Converter allows users to convert and compare time in different time zones.
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
Success! There were no dangerous files found in this plugin1,423 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 176 | 100 | 811 |
CSS | 4 | 68 | 5 | 350 |
JavaScript | 2 | 46 | 27 | 232 |
Markdown | 1 | 14 | 0 | 30 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 4 | 22.22% |
▷ Public methods | 18 | 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 | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/calendar_icon.png | 0.84KB | 0.76KB | ▼ 9.99% |
assets/css/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |