10% adatosystems-friday-zmanim

Code Review | Shabbat Zman Widget

WordPress plugin Shabbat Zman Widget scored10%from 54 tests.

About plugin

  • Plugin page: adatosystems-frid...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 6.3.1
  • First release: Oct 8, 2013
  • Latest release: Jan 8, 2014
  • Number of updates: 49
  • Update frequency: every 1.9 days
  • Top authors: adatosystems (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

90+ active /2,821 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/adatosystems-friday-zmanim/zmanfriday.php+35
    Methods with the same name as their class will not be constructors in a future version of PHP; AdatoSystems_Zman_Widget has a deprecated constructor

Server metrics [RAM: ▼1.70MB] [CPU: ▼57.28ms] Passed 4 tests

Analyzing server-side resources used by Shabbat Zman Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.175.45 ▼33.96
Dashboard /wp-admin2.32 ▼0.996.44 ▼48.64
Posts /wp-admin/edit.php2.32 ▼1.049.18 ▼46.79
Add New Post /wp-admin/post-new.php2.32 ▼3.576.81 ▼99.74
Media Library /wp-admin/upload.php2.32 ▼0.926.68 ▼32.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_frizman-shabbat-widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shabbat Zman Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.342.16 ▲0.4444.95 ▼3.27
Dashboard /wp-admin2,192 ▲125.56 ▼0.0494.08 ▲2.0839.19 ▼1.11
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0536.95 ▼4.9433.67 ▼4.40
Add New Post /wp-admin/post-new.php1,528 ▲222.86 ▲1.91686.55 ▼9.8555.66 ▼2.64
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0599.44 ▼17.8643.26 ▼5.19

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/adatosystems-friday-zmanim/zmanfriday.php+35
    Methods with the same name as their class will not be constructors in a future version of PHP; AdatoSystems_Zman_Widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_frizman-shabbat-widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/adatosystems-friday-zmanim/zmanfriday.php:35

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: shabbat times, shabbat, zman

adatosystems-friday-zmanim/zmanfriday.php 92% from 13 tests

The primary PHP file in "Shabbat Zman Widget" version 1.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("adatosystems-friday-zmanim.php" instead of "zmanfriday.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin366 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13362366

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity18.25
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin