89% berocket-custom-thank-you-page-for-woocommerce

Code Review | BeRocket Custom Thank You Page

WordPress plugin BeRocket Custom Thank You Page scored 89% from 54 tests.

About plugin

  • Plugin page: berocket-custom-t...
  • Plugin version: 1.0.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 11, 2018
  • Latest release: Mar 15, 2021
  • Number of updates: 9
  • Update frequency: every 113.2 days
  • Top authors: dholovnia (77.78%)RazyRx (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,016 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
Install script ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼15.64ms] Passed 4 tests

Analyzing server-side resources used by BeRocket Custom Thank You Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.45 ▼9.17
Dashboard /wp-admin3.38 ▲0.0746.44 ▼11.61
Posts /wp-admin/edit.php3.43 ▲0.0751.60 ▲4.78
Add New Post /wp-admin/post-new.php4.67 ▼1.2242.81 ▼42.90
Media Library /wp-admin/upload.php3.30 ▲0.0734.70 ▲1.14
Thank you page /wp-admin/admin.php?page=custompage3.2831.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BeRocket Custom Thank You Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,686 ▼6013.18 ▼1.091.15 ▼0.6924.57 ▼21.35
Dashboard /wp-admin2,206 ▲184.87 ▼0.01108.81 ▼9.2341.20 ▼2.46
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0340.76 ▲4.3534.80 ▲1.85
Add New Post /wp-admin/post-new.php45 ▼1,4930.44 ▼22.830.08 ▼636.8611.27 ▼41.58
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0498.40 ▼2.2260.68 ▲17.29
Thank you page /wp-admin/admin.php?page=custompage8432.0826.2322.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
7 plugin tags: upsell, redirect after order, cross-sell, after order page, custom thank you page...

berocket-custom-thank-you-page-for-woocommerce/thank-you-page.php 85% from 13 tests

The main file in "BeRocket Custom Thank You Page" v. 1.0.1.1 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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("berocket-custom-thank-you-page-for-woocommerce.php" instead of "thank-you-page.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected423 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15082348
PO File1121243
JavaScript16032
CSS1100

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
No PNG images were found in this plugin