Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.57MB] [CPU: ▼3.01ms] Passed 4 tests
Server-side resources used by TimeZoneCalculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.57 | 46.48 ▲4.28 |
Dashboard /wp-admin | 3.92 ▲0.62 | 52.04 ▲0.64 |
Posts /wp-admin/edit.php | 3.97 ▲0.62 | 54.06 ▼1.75 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 91.94 ▼13.98 |
Media Library /wp-admin/upload.php | 3.78 ▲0.56 | 39.28 ▲3.04 |
TimeZoneCalculator /wp-admin/tools.php?page=timezonecalculator_calculator | 3.92 | 43.38 |
TimeZoneCalculator /wp-admin/options-general.php?page=timezonecalculator | 3.84 | 38.95 |
Server storage [IO: ▲0.34MB] [DB: ▲0.03MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
timezonecalculator |
can_compress_scripts |
widget_recent-comments |
widget_timezonecalculator |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for TimeZoneCalculator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,963 ▲217 | 13.66 ▼0.64 | 10.45 ▲8.75 | 46.16 ▲2.33 |
Dashboard /wp-admin | 2,236 ▲45 | 4.88 ▼1.00 | 115.78 ▼0.05 | 45.18 ▲4.41 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.03 ▲0.03 | 40.30 ▼1.30 | 34.26 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,530 ▼14 | 17.63 ▼0.60 | 625.60 ▼10.14 | 57.23 ▼0.96 |
Media Library /wp-admin/upload.php | 1,421 ▲42 | 4.21 ▼0.02 | 99.11 ▼1.03 | 41.23 ▼2.84 |
TimeZoneCalculator /wp-admin/tools.php?page=timezonecalculator_calculator | 1,508 | 2.69 | 57.50 | 49.89 |
TimeZoneCalculator /wp-admin/options-general.php?page=timezonecalculator | 3,489 | 2.57 | 50.22 | 36.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/timezonecalculator/uninstall.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/timezonecalculator/timezonecalculator.php:480
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screenshot shows the Settings/TimeZoneCalculator Tab with the Selection GUI Section in the Admin Menu.), #2 (This picture presents the Preview Section of the TimeZoneCalculator Tab in the Admin Menu.), #3 (This screenshot illustrates the clock in the WordPress Admin Bar. - The date/time and display format can be customized.), #4 (The last picture shows the Calculator Section in the Tools Menu on a mobile phone.)
timezonecalculator/timezonecalculator.php Passed 13 tests
The entry point to "TimeZoneCalculator" version 3.37 is a PHP file that has certain tags in its header comment area
118 characters long description:
Calculates, displays and automatically updates times and dates in different timezones with respect to daylight saving.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,518 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 1,342 | 1,405 | 2,123 |
JavaScript | 34 | 340 | 441 | 770 |
CSS | 2 | 110 | 55 | 625 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 109.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.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 | 156 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 89 | 57.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 67 | 42.95% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 8.73KB | 4.93KB | ▼ 43.48% |
screenshot-2.png | 16.83KB | 7.57KB | ▼ 55.05% |
screenshot-4.png | 15.01KB | 8.33KB | ▼ 44.51% |
screenshot-3.png | 2.82KB | 2.65KB | ▼ 5.79% |