10% biz-calendar

Code Review | Biz Calendar

WordPress plugin Biz Calendar scored10%from 54 tests.

About plugin

  • Plugin page: biz-calendar
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.0
  • WordPress version: 6.3.1
  • First release: Jan 7, 2013
  • Latest release: Aug 1, 2017
  • Number of updates: 26
  • Update frequency: every 64.5 days
  • Top authors: hidaka.bizplugin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10,000+ active /74,519 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/biz-calendar/biz-calendar.php+73
    Function create_function() is deprecated

Server metrics [RAM: ▼1.86MB] [CPU: ▼57.33ms] Passed 4 tests

This is a short check of server-side resources used by Biz Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.325.33 ▼33.80
Dashboard /wp-admin2.16 ▼1.196.99 ▼53.21
Posts /wp-admin/edit.php2.16 ▼1.206.57 ▼45.34
Add New Post /wp-admin/post-new.php2.16 ▼3.737.04 ▼96.95
Media Library /wp-admin/upload.php2.16 ▼1.077.69 ▼27.97
Biz Calendar設定 /wp-admin/options-general.php?page=biz-calendar/biz-calendar.php2.167.03

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options
bizcalendar_options
db_upgraded
widget_bizcalendar
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
biz_national_holiday

Browser metrics Passed 4 tests

A check of browser resources used by Biz Calendar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲14913.72 ▼0.587.64 ▲5.8341.21 ▲1.04
Dashboard /wp-admin2,209 ▲215.85 ▼0.0099.85 ▼7.3242.17 ▼1.55
Posts /wp-admin/edit.php2,098 ▲92.09 ▲0.0833.58 ▼7.4036.11 ▲0.85
Add New Post /wp-admin/post-new.php1,541 ▲2723.21 ▲5.60654.89 ▼31.6353.25 ▼1.85
Media Library /wp-admin/upload.php1,397 ▲124.32 ▲0.1299.06 ▼9.2545.09 ▼6.64
Biz Calendar設定 /wp-admin/options-general.php?page=biz-calendar/biz-calendar.php1,1152.2127.80101.98

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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/biz-calendar/biz-calendar.php+73
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 9 options
    • theysaidso_admin_options
    • biz_national_holiday
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • bizcalendar_options
    • widget_theysaidso_widget
    • widget_bizcalendar

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=biz-calendar/biz-calendar.php
    • > Deprecated in wp-content/plugins/biz-calendar/biz-calendar.php+73
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=biz-calendar/biz-calendar.php
    • > Notice in wp-content/plugins/biz-calendar/admin-ui.php+106
    Undefined index: eventday_url

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/biz-calendar/biz-calendar.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/biz-calendar/admin-view.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

biz-calendar/biz-calendar.php Passed 13 tests

The principal PHP file in "Biz Calendar" v. 2.2.0 is loaded by WordPress automatically on each request
99 characters long description:
営業日・イベントカレンダーをウィジェットに表示するプラグインです。

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 plugin760 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP36140372
JavaScript22510295
CSS11093

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods47
▷ Static methods714.89%
▷ Public methods4697.87%
▷ Protected methods00.00%
▷ Private methods12.13%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/down.png0.14KB0.13KB▼ 7.69%
image/up-limit.png0.11KB0.12KB0.00%
image/up.png0.14KB0.13KB▼ 9.72%
image/down-limit.png0.11KB0.13KB0.00%
image/today.png0.13KB0.10KB▼ 19.23%