10% podamibe-appointment-calendar

Code Review | Podamibe Appointment Calendar

WordPress plugin Podamibe Appointment Calendar scored10%from 54 tests.

About plugin

  • Plugin page: podamibe-appointm...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: May 22, 2019
  • Number of updates: 17
  • Update frequency: every 55.5 days
  • Top authors: podamibe (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /4,074 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/podamibe-appointment-calendar/inc/backend/class-pac-create-db.php+86
    Non-static method PAC_Table_Generator::_buildPacUserTable() should not be called statically

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.80ms] Passed 4 tests

Server-side resources used by Podamibe Appointment Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.82 ▲3.13
Dashboard /wp-admin3.34 ▲0.0347.69 ▼7.57
Posts /wp-admin/edit.php3.45 ▲0.0944.66 ▼5.86
Add New Post /wp-admin/post-new.php5.93 ▲0.0590.65 ▼12.90
Media Library /wp-admin/upload.php3.26 ▲0.0337.55 ▲5.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 33 new files
Database: 1 new table, 7 new options
New tables
wp_pac_user
New WordPress options
widget_pac_widget
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Podamibe Appointment Calendar: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲25414.19 ▼0.2212.26 ▲10.4541.41 ▼6.27
Dashboard /wp-admin2,253 ▲655.23 ▼0.65106.79 ▲6.9142.22 ▼2.22
Posts /wp-admin/edit.php2,123 ▲342.60 ▲0.5838.51 ▼1.3333.36 ▼3.28
Add New Post /wp-admin/post-new.php1,567 ▲4823.54 ▲0.39594.45 ▼16.4833.35 ▼15.31
Media Library /wp-admin/upload.php1,445 ▲574.50 ▲0.3289.80 ▼7.5344.65 ▲3.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_pac_user
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_pac_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 11× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/backend/class-pac-calendar.php
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/backend/class-pac-instruction.php
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/backend/class-pac-widget.php
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/backend/class-pac-setting.php
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/frontend/class-pac-sc.php
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/backend/class-pac-form.php
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/frontend/class-pac-form-element.php
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/backend/class-pac-about.php
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/backend/class-pac-users.php
    • > /wp-content/plugins/podamibe-appointment-calendar/inc/frontend/class-pac-design.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

podamibe-appointment-calendar/pac-main.php 77% from 13 tests

The primary PHP file in "Podamibe Appointment Calendar" version 1.1.6 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("podamibe-appointment-calendar.php" instead of "pac-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,193 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP121071121,005
CSS66622865
JavaScript53838323

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.00
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods311.54%
▷ Public methods1869.23%
▷ Protected methods00.00%
▷ Private methods830.77%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
6 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ui-icons_777777_256x240.png3.67KB4.17KB0.00%
assets/images/ui-icons_ffffff_256x240.png3.67KB4.17KB0.00%
assets/images/right-arrow.png0.36KB0.19KB▼ 46.74%
assets/images/ui-icons_444444_256x240.png3.67KB4.17KB0.00%
assets/images/ui-icons_555555_256x240.png3.67KB4.17KB0.00%