84% surbma-bookingcom-shortcode

Code Review | Surbma | Booking.com Shortcode

WordPress plugin Surbma | Booking.com Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: surbma-bookingcom...
  • Plugin version: 2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 3, 2015
  • Latest release: Apr 8, 2023
  • Number of updates: 14
  • Update frequency: every 209.1 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.45ms] Passed 4 tests

Analyzing server-side resources used by Surbma | Booking.com Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.48 ▼2.80
Dashboard /wp-admin3.31 ▼0.0448.10 ▼18.75
Posts /wp-admin/edit.php3.36 ▲0.0048.39 ▼0.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.64 ▼7.82
Media Library /wp-admin/upload.php3.23 ▲0.0041.96 ▲3.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Surbma | Booking.com Shortcode: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.47 ▲0.241.79 ▲0.0339.69 ▼4.61
Dashboard /wp-admin2,195 ▲155.57 ▼0.1483.16 ▼4.7638.70 ▼2.63
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0142.18 ▲4.3638.34 ▲1.60
Add New Post /wp-admin/post-new.php1,545 ▲1923.26 ▲5.79655.09 ▼29.0657.61 ▼8.95
Media Library /wp-admin/upload.php1,397 ▼64.21 ▲0.09103.75 ▲2.2045.13 ▲0.97

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/surbma-bookingcom-shortcode/surbma-bookingcom-shortcode.php

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: bookingcom, shortcode

surbma-bookingcom-shortcode/surbma-bookingcom-shortcode.php 92% from 13 tests

The main PHP file in "Surbma | Booking.com Shortcode" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

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
Good job! No executable or dangerous file extensions detected18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP181315
Markdown1103

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.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin