Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼144.72ms] Passed 4 tests
A check of server-side resources used by World Time
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 33.00 ▲12.51 |
Dashboard /wp-admin | 3.08 ▲0.03 | 42.63 ▼6.08 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 43.02 ▼3.36 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 80.56 ▼564.63 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 27.88 ▼4.80 |
World Time /wp-admin/options-general.php?page=wt-settings | 3.15 | 27.08 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for World Time
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,822 ▲226 | 16.25 ▲0.79 | 12.01 ▲2.48 | 58.63 ▲10.40 |
Dashboard /wp-admin | 2,978 ▲44 | 5.87 ▼0.05 | 135.69 ▼17.60 | 114.79 ▼0.91 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 63.54 ▼4.69 | 84.00 ▲3.47 |
Add New Post /wp-admin/post-new.php | 1,503 ▼167 | 18.60 ▼0.63 | 350.53 ▼25.51 | 106.50 ▼8.43 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.00 ▼0.01 | 152.12 ▼9.28 | 128.29 ▲8.42 |
World Time /wp-admin/options-general.php?page=wt-settings | 9,641 | 2.09 | 55.84 | 87.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
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
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× 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/world-time/src/wt-main.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/world-time/tpl/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: world time, timezones
world-time/world-time.php 92% from 13 tests
"World Time" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 309 characters long)
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
There were no executable files found in this plugin151 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 12 | 7 | 117 |
JavaScript | 1 | 1 | 3 | 27 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 1 | 12.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 1 | 12.50% |
▷ 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin