89% stardekk-cubilis-fastbooker

Code Review | Cubilis Fastbooker - Wordpress plugin

WordPress plugin Cubilis Fastbooker - Wordpress plugin scored89%from 54 tests.

About plugin

  • Plugin page: stardekk-cubilis-...
  • Plugin version: v.2.4.0...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: Oct 28, 2022
  • Number of updates: 73
  • Update frequency: every 34.4 days
  • Top authors: kengy (52.05%)simonstardekk (49.32%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,986 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.94ms] Passed 4 tests

Analyzing server-side resources used by Cubilis Fastbooker - Wordpress plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1441.17 ▼0.45
Dashboard /wp-admin3.44 ▲0.0951.31 ▼14.71
Posts /wp-admin/edit.php3.55 ▲0.1948.62 ▼1.01
Add New Post /wp-admin/post-new.php6.02 ▲0.1398.98 ▼7.59
Media Library /wp-admin/upload.php3.36 ▲0.1341.91 ▲2.82

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_cubilis_fastbooker_widget
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Cubilis Fastbooker - Wordpress plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18413.68 ▼1.076.94 ▲5.2039.09 ▲0.68
Dashboard /wp-admin2,218 ▲295.84 ▼0.09103.49 ▼2.2479.18 ▲37.13
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0237.88 ▲3.6336.87 ▲2.12
Add New Post /wp-admin/post-new.php1,536 ▲1718.19 ▼5.06737.57 ▲48.3964.35 ▲3.05
Media Library /wp-admin/upload.php1,397 ▲124.15 ▼0.03101.72 ▼3.0081.74 ▲35.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_cubilis_fastbooker_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 83% 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:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

stardekk-cubilis-fastbooker/cubilis-fastbooker.php 69% from 13 tests

The entry point to "Cubilis Fastbooker - Wordpress plugin" version v.2.4.0... is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "v.2.4.0...")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 324 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("stardekk-cubilis-fastbooker.php" instead of "cubilis-fastbooker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,050 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript43362511,949
PO File83764241,078
CSS36328598
PHP47870423
JSON1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity11.50
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.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
2 PNG files occupy 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/cubilis_klein.png16.54KB1.02KB▼ 93.83%
trunk/assets/cubilis_klein.png16.54KB1.02KB▼ 93.83%