90% wp-utz

Code Review | WP User Level Timezone

WordPress plugin WP User Level Timezone scored 90% from 54 tests.

About plugin

  • Plugin page: wp-utz
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Aug 4, 2020
  • Latest release: Aug 4, 2020
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: khill07 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 1,001 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼4.55ms] Passed 4 tests

An overview of server-side resources used by WP User Level Timezone
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1838.67 ▼4.79
Dashboard /wp-admin3.48 ▲0.1849.71 ▼7.12
Posts /wp-admin/edit.php3.60 ▲0.2451.81 ▲1.76
Add New Post /wp-admin/post-new.php6.08 ▲0.2090.53 ▼8.05
Media Library /wp-admin/upload.php3.40 ▲0.1838.28 ▲5.74
WP User Timezone /wp-admin/options-general.php?page=wp_utz_settings3.3732.13

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP User Level Timezone
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲12713.17 ▼1.214.70 ▲3.0040.56 ▼8.40
Dashboard /wp-admin2,230 ▲424.82 ▼1.08108.14 ▼6.5240.66 ▼7.50
Posts /wp-admin/edit.php2,157 ▲683.26 ▲1.2173.15 ▲37.1935.67 ▲0.90
Add New Post /wp-admin/post-new.php1,536 ▲317.66 ▼5.33646.13 ▼27.1934.19 ▼21.56
Media Library /wp-admin/upload.php1,415 ▲334.23 ▲0.0294.30 ▼3.0641.61 ▼1.68
WP User Timezone /wp-admin/options-general.php?page=wp_utz_settings8611.7325.5129.81

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-utz === )
You can take inspiration from this readme.txt

wp-utz/wp-utz.php Passed 13 tests

This is the main PHP file of "WP User Level Timezone" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Allows the site-level timezone to be changed at the user profile level

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected918 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP11142245741
JavaScript31412152
CSS15325

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.88
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin