83% wp-xperts-woocommerce-custom-thank-you-page

Code Review | WP-xPerts Woocommerce Custom Thank you Page

WordPress plugin WP-xPerts Woocommerce Custom Thank you Page scored83%from 54 tests.

About plugin

  • Plugin page: wp-xperts-woocomm...
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.7.2
  • WordPress version: 6.3.1
  • First release: Nov 14, 2016
  • Latest release: Jul 29, 2017
  • Number of updates: 13
  • Update frequency: every 19.5 days
  • Top authors: wpxperts15 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,694 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
Installer ran successfully

Server metrics [RAM: ▼0.14MB] [CPU: ▼11.16ms] Passed 4 tests

A check of server-side resources used by WP-xPerts Woocommerce Custom Thank you Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▼0.6217.78 ▼26.49
Dashboard /wp-admin3.32 ▲0.0248.64 ▼6.75
Posts /wp-admin/edit.php3.37 ▲0.0251.45 ▼0.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.15 ▼10.64
Media Library /wp-admin/upload.php3.24 ▲0.0240.76 ▲6.31
Woo Thank-You Page /wp-admin/options-general.php?page=wx-woo-thank-you3.2332.12

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP-xPerts Woocommerce Custom Thank you Page
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,449 ▼31214.19 ▼0.160.80 ▼1.7519.60 ▼23.30
Dashboard /wp-admin2,202 ▲225.56 ▼0.1091.85 ▼7.7440.93 ▼3.25
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0739.38 ▼1.5137.94 ▲1.45
Add New Post /wp-admin/post-new.php1,529 ▲323.03 ▼0.06670.39 ▼13.7866.05 ▲12.49
Media Library /wp-admin/upload.php1,407 ▲104.22 ▲0.0498.00 ▼3.4945.13 ▼3.11
Woo Thank-You Page /wp-admin/options-general.php?page=wx-woo-thank-you8452.0025.6028.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wx-woo-thank-you
    • > Notice in wp-content/plugins/wp-xperts-woocommerce-custom-thank-you-page/inc/wx-cr-settings.php+62
    Trying to access array offset on value of type bool

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: woo custom thank you page, woocommerce, custom redirect, woo thank you page redirect

wp-xperts-woocommerce-custom-thank-you-page/woo-custom-thankyou-page.php 77% from 13 tests

"WP-xPerts Woocommerce Custom Thank you Page" version 1.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 230 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-xperts-woocommerce-custom-thank-you-page.php" instead of "woo-custom-thankyou-page.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected175 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3289162
CSS10013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin