83% holy-day-off

Code Review | Holy Day Off

WordPress plugin Holy Day Off scored83%from 54 tests.

About plugin

  • Plugin page: holy-day-off
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 2, 2021
  • Latest release: Nov 9, 2021
  • Number of updates: 10
  • Update frequency: every 0.7 days
  • Top authors: topwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲0.36ms] Passed 4 tests

An overview of server-side resources used by Holy Day Off
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.81 ▼1.13
Dashboard /wp-admin3.40 ▲0.1051.43 ▲6.60
Posts /wp-admin/edit.php3.51 ▲0.1649.35 ▲6.90
Add New Post /wp-admin/post-new.php6.00 ▲0.1183.64 ▼9.01
Media Library /wp-admin/upload.php3.32 ▲0.0939.28 ▲4.96

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options
mms_shabbat_close
mms_shabbat_next_shabbat_time
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Holy Day Off: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.43 ▲0.061.86 ▲0.0444.85 ▲2.15
Dashboard /wp-admin2,233 ▲565.15 ▼0.4697.27 ▲7.7038.26 ▲0.49
Posts /wp-admin/edit.php2,125 ▲252.44 ▲0.4743.09 ▼0.4037.05 ▼1.67
Add New Post /wp-admin/post-new.php1,563 ▲2623.95 ▲5.60695.53 ▲66.9838.48 ▼22.75
Media Library /wp-admin/upload.php1,445 ▲424.51 ▲0.3290.78 ▼16.3640.15 ▼3.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • mms_shabbat_next_shabbat_time
    • mms_shabbat_close
    • can_compress_scripts
    • widget_theysaidso_widget

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'TopwpHolyDayOff\\Base\\BaseController' not found in wp-content/plugins/holy-day-off/includes/Base/Plugin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'TopwpHolyDayOff\\Base\\BaseController' not found in wp-content/plugins/holy-day-off/includes/Base/SettingsLinks.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'TopwpHolyDayOff\\Base\\BaseController' not found in wp-content/plugins/holy-day-off/includes/Api/Callbacks/ManagerCallBacks.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/holy-day-off/templates/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'TopwpHolyDayOff\\Base\\BaseController' not found in wp-content/plugins/holy-day-off/includes/Base/Enqueue.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'TopwpHolyDayOff\\Base\\BaseController' not found in wp-content/plugins/holy-day-off/includes/Api/Callbacks/AdminCallbacks.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/holy-day-off/templates/popup.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'TopwpHolyDayOff\\Base\\BaseController' not found in wp-content/plugins/holy-day-off/includes/Pages/Admin.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'TopwpHolyDayOff\\Pages\\Admin' not found in wp-content/plugins/holy-day-off/includes/Init.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #3, #4 in holy-day-off/assets to your readme.txt
The official readme.txt is a good inspiration

holy-day-off/topwp-holy-day-off.php 85% from 13 tests

The principal PHP file in "Holy Day Off" v. 1.1.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: The principal plugin file should be the same as the plugin slug ("holy-day-off.php" instead of "topwp-holy-day-off.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,769 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP254214001,659
CSS216170
JSON20022
JavaScript24118

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.69
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods98
▷ Static methods2121.43%
▷ Public methods9596.94%
▷ Protected methods00.00%
▷ Private methods33.06%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
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
No PNG images were found in this plugin