10% daily-zman-widget

Code Review | Daily Zman Widget

WordPress plugin Daily Zman Widget scored10%from 54 tests.

About plugin

  • Plugin page: daily-zman-widget
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.7.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2013
  • Latest release: Nov 22, 2013
  • Number of updates: 14
  • Update frequency: every 2.8 days
  • Top authors: adatosystems (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /1,702 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/daily-zman-widget/zmandaily.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; AdatoSystems_DailyZman_Widget has a deprecated constructor

Server metrics [RAM: ▼1.76MB] [CPU: ▼53.44ms] Passed 4 tests

Server-side resources used by Daily Zman Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.235.27 ▼37.47
Dashboard /wp-admin2.25 ▼1.0510.31 ▼34.54
Posts /wp-admin/edit.php2.26 ▼1.107.36 ▼45.37
Add New Post /wp-admin/post-new.php2.25 ▼3.646.62 ▼96.39
Media Library /wp-admin/upload.php2.26 ▼0.985.69 ▼29.85

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_zman-daily-widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Daily Zman Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼1.051.83 ▲0.1643.69 ▼4.62
Dashboard /wp-admin2,206 ▲155.83 ▲0.83108.00 ▲6.6742.40 ▼1.23
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0339.82 ▼1.3235.86 ▼1.56
Add New Post /wp-admin/post-new.php1,534 ▲123.16 ▲0.21588.43 ▲0.4350.43 ▼0.74
Media Library /wp-admin/upload.php1,388 ▼34.15 ▼0.0597.29 ▼4.0944.83 ▲1.36

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/daily-zman-widget/zmandaily.php+29
    Methods with the same name as their class will not be constructors in a future version of PHP; AdatoSystems_DailyZman_Widget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_zman-daily-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
Everything seems fine, however 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
Almost there! Just fix the following items
  • 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/daily-zman-widget/zmandaily.php:29

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: zmanim, zman, davening times, prayer times, davening

daily-zman-widget/zmandaily.php 92% from 13 tests

The entry point to "Daily Zman Widget" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("daily-zman-widget.php" instead of "zmandaily.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin275 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13148275

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity12.25
▷ Minimum method complexity1.00
▷ Maximum method complexity26.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin