78% wpjqp-datepicker

Code Review | WP jQuery Persian Datepicker

WordPress plugin WP jQuery Persian Datepicker scored 78% from 54 tests.

About plugin

  • Plugin page: wpjqp-datepicker
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: May 9, 2016
  • Latest release: May 9, 2016
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: bhzad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active / 3,712 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.23ms] Passed 4 tests

This is a short check of server-side resources used by WP jQuery Persian Datepicker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1536.36 ▼6.85
Dashboard /wp-admin3.34 ▲0.0447.70 ▲0.13
Posts /wp-admin/edit.php3.46 ▲0.1052.19 ▲3.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.96 ▼2.56
Media Library /wp-admin/upload.php3.24 ▲0.0232.91 ▲0.37
WP jQuery Persian Datepicker /wp-admin/options-general.php?page=wp_jqpdp3.2929.92

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP jQuery Persian Datepicker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,053 ▲31815.67 ▲1.515.34 ▲3.4338.11 ▼5.13
Dashboard /wp-admin2,354 ▲1666.40 ▲1.53131.88 ▲30.4938.01 ▼5.21
Posts /wp-admin/edit.php2,263 ▲1743.35 ▲1.3753.95 ▲12.7034.89 ▼2.37
Add New Post /wp-admin/post-new.php1,535 ▼723.39 ▲5.00618.72 ▼19.0233.96 ▼24.78
Media Library /wp-admin/upload.php1,396 ▲84.15 ▼0.0881.17 ▼26.4240.08 ▼9.21
WP jQuery Persian Datepicker /wp-admin/options-general.php?page=wp_jqpdp1,0013.1138.2638.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp_jqpdp
    • > Notice in wp-content/plugins/wpjqp-datepicker/inc/wpjqpdp_settings.php+160
    Trying to access array offset on value of type null

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 items
  • 6× PHP files output text when accessed directly:
    • > /wp-content/plugins/wpjqp-datepicker/inc/wpjqpdp_settings.php
    • > /wp-content/plugins/wpjqp-datepicker/src/inc/functions.php
    • > /wp-content/plugins/wpjqp-datepicker/src/index.php
    • > /wp-content/plugins/wpjqp-datepicker/inc/functions.php
    • > /wp-content/plugins/wpjqp-datepicker/index.php
    • > /wp-content/plugins/wpjqp-datepicker/src/inc/wpjqpdp_settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (WP jQuery Persian Datepicker > Default Settings Page - 1) image not found
The official readme.txt is a good inspiration

wpjqp-datepicker/index.php 92% from 13 tests

Analyzing the main PHP file in "WP jQuery Persian Datepicker" version 0.1.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpjqp-datepicker.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin1,344 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS61346996
PHP310123278
Markdown153069
JavaScript10121

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin