68% super-booking-calendar

Code Review | Super Booking Calendar

WordPress plugin Super Booking Calendar scored68%from 54 tests.

About plugin

  • Plugin page: super-booking-cal...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Dec 10, 2015
  • Latest release: Dec 10, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: spininteractive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /816 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.16ms] Passed 4 tests

An overview of server-side resources used by Super Booking Calendar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.13 ▼0.94
Dashboard /wp-admin3.33 ▲0.0243.51 ▼2.82
Posts /wp-admin/edit.php3.38 ▲0.0246.40 ▲0.89
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.43 ▼15.24
Media Library /wp-admin/upload.php3.25 ▲0.0235.21 ▼1.63
Super Booking Calendar /wp-admin/options-general.php?page=super-booking-calendar3.2341.03

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

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

Browser metrics Passed 4 tests

Super Booking Calendar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.37 ▼0.992.66 ▲0.9639.93 ▼5.45
Dashboard /wp-admin2,232 ▲444.96 ▼0.86113.79 ▲7.9742.72 ▲1.15
Posts /wp-admin/edit.php2,112 ▲202.10 ▲0.0840.38 ▼0.5334.28 ▼1.78
Add New Post /wp-admin/post-new.php1,538 ▲1923.33 ▲0.27630.31 ▲4.4633.95 ▼16.23
Media Library /wp-admin/upload.php1,408 ▲204.24 ▲0.0493.89 ▲0.5042.13 ▼0.14
Super Booking Calendar /wp-admin/options-general.php?page=super-booking-calendar8971.8024.1626.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • booking
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/super-booking-calendar/super-booking-calendar.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/super-booking-calendar/views/default.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/super-booking-calendar/views/form.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: You can look at the official readme.txt

super-booking-calendar/super-booking-calendar.php Passed 13 tests

The main PHP script in "Super Booking Calendar" version 1.0 is automatically included on every request by WordPress
39 characters long description:
Nice calendar to mark important events.

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
No dangerous file extensions were detected225 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP42535192
JavaScript313131
CSS2192

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods787.50%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
inc/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
inc/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
inc/images/ui-icons_777620_256x240.png4.44KB4.17KB▼ 6.02%
inc/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%