94% weekly-shabbat-times

Code Review | Weekly Shabbat Times

WordPress plugin Weekly Shabbat Times scored 94% from 54 tests.

About plugin

  • Plugin page: weekly-shabbat-times
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6.2
  • WordPress version: 5.8.1
  • First release: Aug 30, 2018
  • Latest release: Feb 26, 2021
  • Number of updates: 5
  • Update frequency: every 182.2 days
  • Top authors: areimann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 386 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼144.92ms] Passed 4 tests

Server-side resources used by Weekly Shabbat Times
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0033.43 ▲0.20
Dashboard /wp-admin3.06 ▲0.0146.45 ▲0.11
Posts /wp-admin/edit.php3.11 ▲0.0041.51 ▲0.55
Add New Post /wp-admin/post-new.php5.42 ▼0.0286.67 ▼577.58
Media Library /wp-admin/upload.php3.00 ▲0.0026.90 ▼2.39

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Weekly Shabbat Times
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲9715.86 ▲0.1910.12 ▲1.7448.74 ▲1.27
Dashboard /wp-admin2,973 ▲395.90 ▼0.06137.07 ▼14.29115.19 ▲6.05
Posts /wp-admin/edit.php2,739 ▲32.72 ▼0.0065.20 ▲0.1491.01 ▼4.68
Add New Post /wp-admin/post-new.php1,872 ▲28119.13 ▲0.34371.92 ▲8.68112.95 ▲4.65
Media Library /wp-admin/upload.php1,807 ▼05.05 ▼0.00148.89 ▼2.72118.42 ▼0.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Hebcal\\add_shortcode() in wp-content/plugins/weekly-shabbat-times/hebcal-json.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: shabbat

weekly-shabbat-times/hebcal-json.php 92% from 13 tests

"Weekly Shabbat Times" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("weekly-shabbat-times.php" instead of "hebcal-json.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin48 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2241248

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin