84% custom-one-page-checkout-for-woo-free-by-wp-masters

Code Review | Custom & One-Page Checkout for Woo - Free by WP Masters

WordPress plugin Custom & One-Page Checkout for Woo - Free by WP Masters scored84%from 54 tests.

About plugin

  • Plugin page: custom-one-page-c...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Aug 10, 2022
  • Latest release: Mar 28, 2023
  • Number of updates: 4
  • Update frequency: every 59.3 days
  • Top authors: wpmasterscom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /313 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.24ms] Passed 4 tests

An overview of server-side resources used by Custom & One-Page Checkout for Woo - Free by WP Masters
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.91 ▼5.59
Dashboard /wp-admin3.34 ▲0.0459.63 ▼0.10
Posts /wp-admin/edit.php3.45 ▲0.1057.14 ▲3.55
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.67 ▼2.81
Media Library /wp-admin/upload.php3.24 ▲0.0148.01 ▲12.83

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom & One-Page Checkout for Woo - Free by WP Masters
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲17716.50 ▲2.101.94 ▼0.1540.80 ▼3.99
Dashboard /wp-admin2,372 ▲1957.86 ▲2.31123.93 ▲29.2336.85 ▼9.18
Posts /wp-admin/edit.php2,300 ▲2005.28 ▲3.3357.51 ▲18.3633.70 ▼5.74
Add New Post /wp-admin/post-new.php6,423 ▲4,89723.96 ▲0.66978.44 ▲270.5138.54 ▼18.92
Media Library /wp-admin/upload.php1,434 ▲346.57 ▲2.37100.01 ▼16.1348.68 ▲1.64

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/templates/frontend/fragments/select_shipping.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/templates/frontend/fragments/total_checkout.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/wpm-custom-checkout.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/templates/frontend/checkout.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/custom-one-page-checkout-for-woo-free-by-wp-masters/templates/admin/settings.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: shopify-like checkout, checkout, one-page checkout, custom checkout

custom-one-page-checkout-for-woo-free-by-wp-masters/wpm-custom-checkout.php 85% from 13 tests

Analyzing the main PHP file in "Custom & One-Page Checkout for Woo - Free by WP Masters" version 1.0.1
The following require your attention:
  • 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: Name the main plugin file the same as the plugin slug ("custom-one-page-checkout-for-woo-free-by-wp-masters.php" instead of "wpm-custom-checkout.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin21,332 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
SVG3009,552
CSS6202378,297
JavaScript53492162,265
PHP8971281,218

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity24.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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
templates/assets/img/logo.png11.32KB4.55KB▼ 59.79%