83% jkl-timezone-converter

Code Review | JKL Timezone Converter

WordPress plugin JKL Timezone Converter scored83%from 54 tests.

About plugin

  • Plugin page: jkl-timezone-conv...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 6.3.1
  • First release: Apr 20, 2016
  • Latest release: Apr 20, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jekkilekki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.90ms] Passed 4 tests

Server-side resources used by JKL Timezone Converter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0435.78 ▼6.27
Dashboard /wp-admin3.34 ▲0.0444.49 ▼3.67
Posts /wp-admin/edit.php3.45 ▲0.1049.63 ▲1.95
Add New Post /wp-admin/post-new.php5.92 ▲0.0489.96 ▼11.11
Media Library /wp-admin/upload.php3.26 ▲0.0437.00 ▲1.45

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_jkl_timezones_widget
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for JKL Timezone Converter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.63 ▼0.751.80 ▲0.0741.61 ▼4.08
Dashboard /wp-admin2,203 ▲155.83 ▲0.9498.78 ▼6.4839.24 ▼3.72
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0539.79 ▼2.4334.37 ▼0.44
Add New Post /wp-admin/post-new.php1,522 ▼623.27 ▲4.99664.43 ▲62.2257.34 ▲2.85
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0197.44 ▲2.4244.85 ▼0.54

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_jkl_timezones_widget
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jkl-timezone-converter/inc/functions.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jkl-timezone-converter/inc/functions.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: shortcode, custom, calculator, timezones, content...

jkl-timezone-converter/jkl-timezones.php 77% from 13 tests

"JKL Timezone Converter" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("jkl-timezone-converter.php" instead of "jkl-timezones.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected646 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8161540322
CSS1847234
Markdown131080
JavaScript151110

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity4.33
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods861.54%
▷ Protected methods538.46%
▷ Private methods00.00%
Functions12
▷ Named functions975.00%
▷ Anonymous functions325.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/up-down-arrow.png0.11KB0.11KB▼ 2.61%