84% world-clock-with-drop-down-shortcodes

Code Review | World Clock Dropdown with ShortCodes

WordPress plugin World Clock Dropdown with ShortCodes scored84%from 54 tests.

About plugin

  • Plugin page: world-clock-with-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: Oct 20, 2017
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: jEbbS (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /853 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼9.23ms] Passed 4 tests

A check of server-side resources used by World Clock Dropdown with ShortCodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.38 ▼0.0824.47 ▼13.83
Dashboard /wp-admin3.31 ▲0.0060.23 ▲12.85
Posts /wp-admin/edit.php3.36 ▲0.0040.70 ▼7.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.59 ▼18.35
Media Library /wp-admin/upload.php3.23 ▲0.0034.09 ▲3.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for World Clock Dropdown with ShortCodes
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲16613.62 ▼1.138.01 ▲6.4041.50 ▲3.78
Dashboard /wp-admin2,203 ▲185.77 ▼0.05100.23 ▼2.0837.40 ▼5.44
Posts /wp-admin/edit.php2,068 ▼212.04 ▲0.0533.94 ▼6.6733.25 ▼2.45
Add New Post /wp-admin/post-new.php1,533 ▲1323.54 ▲0.51687.49 ▲94.8358.44 ▲15.51
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.1095.54 ▼6.4144.54 ▲0.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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
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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/world-clock-with-drop-down-shortcodes/world-clock.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Requires php: Version format is invalid
The official readme.txt might help

world-clock-with-drop-down-shortcodes/world-clock.php 92% from 13 tests

The main PHP script in "World Clock Dropdown with ShortCodes" version 0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("world-clock-with-drop-down-shortcodes.php" instead of "world-clock.php")

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 detected883 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP1928613
JavaScript33552202
CSS111243
Markdown17025

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin