84% wp-timezone

Code Review | WP TimeZone

WordPress plugin WP TimeZone scored 84% from 54 tests.

About plugin

  • Plugin page: wp-timezone
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2
  • WordPress version: 6.3.1
  • First release: Jul 20, 2013
  • Latest release: Aug 17, 2015
  • Number of updates: 14
  • Update frequency: every 54.2 days
  • Top authors: ezraverheijen (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 4,907 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.86ms] Passed 4 tests

A check of server-side resources used by WP TimeZone
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.67 ▼4.49
Dashboard /wp-admin3.33 ▲0.0351.19 ▲3.83
Posts /wp-admin/edit.php3.38 ▲0.0351.29 ▲0.14
Add New Post /wp-admin/post-new.php5.91 ▲0.03100.03 ▲0.25
Media Library /wp-admin/upload.php3.25 ▲0.0339.20 ▲0.65

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
wpt_scheduled_check
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

WP TimeZone: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.062.11 ▲0.4145.08 ▲4.46
Dashboard /wp-admin2,206 ▲185.85 ▲0.93103.16 ▼12.7541.13 ▼4.38
Posts /wp-admin/edit.php2,089 ▼01.96 ▼0.0439.68 ▲0.0335.00 ▼2.03
Add New Post /wp-admin/post-new.php1,534 ▲123.44 ▲0.27656.13 ▲1.2754.87 ▲1.56
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0296.76 ▼14.9743.16 ▼2.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-timezone/wp-timezone.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
Please fix the following attributes:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

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

The main file in "WP TimeZone" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Takes care of publishing posts that missed their schedule, for CET/CEST time zones only.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin129 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25210377
PO File26652

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin