89% bookingcom-product-helper

Code Review | Booking.com Product Helper

WordPress plugin Booking.com Product Helper scored89%from 54 tests.

About plugin

  • Plugin page: bookingcom-produc...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.2.8+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: Dec 4, 2018
  • Latest release: Feb 1, 2022
  • Number of updates: 23
  • Update frequency: every 50.4 days
  • Top authors: SP - Booking.com (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

4,000+ active /41,612 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼9.16ms] Passed 4 tests

A check of server-side resources used by Booking.com Product Helper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.50 ▼0.92
Dashboard /wp-admin3.39 ▲0.0545.10 ▼19.05
Posts /wp-admin/edit.php3.50 ▲0.1544.05 ▼2.23
Add New Post /wp-admin/post-new.php5.99 ▲0.1179.76 ▼13.93
Media Library /wp-admin/upload.php3.31 ▲0.0934.68 ▼1.42
Booking.com Product Helper /wp-admin/options-general.php?page=bookingcom-product-helper3.2934.81

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Booking.com Product Helper
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.65 ▼0.974.36 ▲2.5433.27 ▼16.75
Dashboard /wp-admin2,217 ▲265.88 ▲0.97103.81 ▼4.0645.02 ▲0.41
Posts /wp-admin/edit.php2,100 ▲112.00 ▼0.0634.65 ▼5.7137.52 ▲0.07
Add New Post /wp-admin/post-new.php1,525 ▲623.15 ▲0.09682.61 ▲7.5161.58 ▲4.56
Media Library /wp-admin/upload.php1,396 ▲114.21 ▲0.02107.66 ▲10.7349.27 ▲6.23
Booking.com Product Helper /wp-admin/options-general.php?page=bookingcom-product-helper9212.0626.1843.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("Booking.com")
  • Screenshots: Please add an image for screenshot #1 (Examples of Booking.com affiliate products)
The official readme.txt might help

bookingcom-product-helper/bookingcom-product-helper.php 92% from 13 tests

The main file in "Booking.com Product Helper" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 265 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,472 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5116120946
CSS1605315
PO File14151133
JavaScript1131266
SVG10112

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected