84% wordpress-hebrew-date

Code Review | Wordpress Hebrew Date

WordPress plugin Wordpress Hebrew Date scored84%from 54 tests.

About plugin

  • Plugin page: wordpress-hebrew-...
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 21, 2009
  • Latest release: Jul 23, 2023
  • Number of updates: 131
  • Update frequency: every 38.6 days
  • Top authors: hatul (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active /11,143 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.04ms] Passed 4 tests

A check of server-side resources used by Wordpress Hebrew Date
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1148.00 ▲2.48
Dashboard /wp-admin3.40 ▲0.0552.96 ▼17.84
Posts /wp-admin/edit.php3.51 ▲0.1554.86 ▼2.24
Add New Post /wp-admin/post-new.php5.97 ▲0.0999.33 ▼6.56
Media Library /wp-admin/upload.php3.32 ▲0.0939.92 ▲3.13
Hebrew Date /wp-admin/options-general.php?page=wordpress-hebrew-date3.2835.39

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 11 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_hebdate_widget
can_compress_scripts
longitude
widget_recent-comments
hebdate_lang
latitude
theysaidso_admin_options
hebdate_format
...

Browser metrics Passed 4 tests

Checking browser requirements for Wordpress Hebrew Date
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.27 ▼0.301.77 ▲0.0242.32 ▼0.90
Dashboard /wp-admin2,202 ▲285.62 ▲0.0390.65 ▼14.1040.34 ▼3.15
Posts /wp-admin/edit.php2,107 ▲71.96 ▼0.0440.34 ▲2.5738.78 ▲2.23
Add New Post /wp-admin/post-new.php1,531 ▼523.27 ▲0.21678.67 ▲20.5955.76 ▼0.48
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0096.66 ▼4.3943.77 ▲1.69
Hebrew Date /wp-admin/options-general.php?page=wordpress-hebrew-date9412.0525.8432.11

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 11 options
    • widget_recent-comments
    • can_compress_scripts
    • hebdate_lang
    • db_upgraded
    • hebdate_format
    • latitude
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_hebdate_widget
    • longitude
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wordpress-hebrew-date/heb_date.php:313

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Date in post), #2 (Date in comment), #3 (Widget)
The official readme.txt might help

wordpress-hebrew-date/heb_date.php 92% from 13 tests

The entry point to "Wordpress Hebrew Date" version 2.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wordpress-hebrew-date.php" instead of "heb_date.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin395 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26626309
PO File1293486

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity22.50
▷ Minimum class complexity4.00
▷ Maximum class complexity41.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png14.29KB6.27KB▼ 56.15%
screenshot-3.png10.53KB4.09KB▼ 61.19%
screenshot-2.png17.59KB6.69KB▼ 61.97%