89% urdu-date-and-time-display

Code Review | Urdu Date and Time Display

WordPress plugin Urdu Date and Time Display scored 89% from 54 tests.

About plugin

  • Plugin page: urdu-date-and-tim...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.5
  • WordPress version: 6.3.1
  • First release: Feb 26, 2013
  • Latest release: Apr 21, 2013
  • Number of updates: 4
  • Update frequency: every 13.7 days
  • Top authors: iMughal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,288 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.15ms] Passed 4 tests

A check of server-side resources used by Urdu Date and Time Display
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.55 ▼1.73
Dashboard /wp-admin3.32 ▲0.0146.74 ▼4.09
Posts /wp-admin/edit.php3.37 ▲0.0149.76 ▲0.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.86 ▼8.88
Media Library /wp-admin/upload.php3.24 ▲0.0134.18 ▼1.88

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Urdu Date and Time Display
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲6613.19 ▼1.191.68 ▲0.0950.95 ▲10.61
Dashboard /wp-admin2,206 ▲154.83 ▼0.07110.59 ▲10.7750.01 ▲10.13
Posts /wp-admin/edit.php2,089 ▲32.02 ▼0.0339.08 ▲4.9642.83 ▲8.89
Add New Post /wp-admin/post-new.php1,542 ▲918.44 ▼4.80595.83 ▼76.2154.23 ▼1.41
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0194.59 ▼14.5444.59 ▼8.97

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 detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: time, urdu date and time display, urdu date and time, urdu, date...

urdu-date-and-time-display/Urdu Date and Time Display.php 85% from 13 tests

The principal PHP file in "Urdu Date and Time Display" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 391 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("urdu-date-and-time-display.php" instead of "Urdu Date and Time Display.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
Success! There were no dangerous files found in this plugin104 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1910104

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin