62% checkoutpage

Code Review | Checkout Page - Custom checkouts that boost your sales

WordPress plugin Checkout Page - Custom checkouts that boost your sales scored62%from 54 tests.

About plugin

  • Plugin page: checkoutpage
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0.2
  • WordPress version: 6.3.1
  • First release: May 17, 2022
  • Latest release: Aug 31, 2022
  • Number of updates: 13
  • Update frequency: every 8.2 days
  • Top authors: checkoutpage (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,676 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.19MB] [CPU: ▼47.26ms] Passed 4 tests

Analyzing server-side resources used by Checkout Page - Custom checkouts that boost your sales
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.80 ▼0.6716.45 ▼27.07
Dashboard /wp-admin2.83 ▼0.5118.01 ▼44.68
Posts /wp-admin/edit.php2.84 ▼0.5217.07 ▼29.98
Add New Post /wp-admin/post-new.php2.83 ▼3.0516.70 ▼87.30
Media Library /wp-admin/upload.php2.84 ▼0.3914.72 ▼21.42
Checkout Page /wp-admin/options-general.php?page=checkoutpage2.8416.54

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Checkout Page - Custom checkouts that boost your sales
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.461.71 ▼0.0444.13 ▲3.16
Dashboard /wp-admin2,202 ▲225.58 ▼0.0885.78 ▼0.8037.80 ▼3.75
Posts /wp-admin/edit.php2,104 ▲41.97 ▲0.0033.93 ▼1.5034.18 ▼3.63
Add New Post /wp-admin/post-new.php6,369 ▲4,84128.14 ▲5.02876.99 ▲170.1136.61 ▼25.36
Media Library /wp-admin/upload.php1,404 ▲44.15 ▼0.0396.03 ▼5.7245.20 ▲0.11
Checkout Page /wp-admin/options-general.php?page=checkoutpage9322.1021.9435.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/checkoutpage/checkoutpage.php+136
    include_once(src/includes/render-checkout-embed.php): failed to open stream: No such file or directory
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=checkoutpage
    • > Warning in wp-content/plugins/checkoutpage/checkoutpage.php+136
    include_once(src/includes/render-checkout-embed.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=checkoutpage
    • > Warning in wp-content/plugins/checkoutpage/checkoutpage.php+136
    include_once(): Failed opening 'src/includes/render-checkout-embed.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/options-general.php?page=checkoutpage
    • > User notice in wp-includes/functions.php+5905
    Function WP_Block_Type_Registry::register was called incorrectly. Block type names must contain a namespace prefix. Example: my-plugin/my-custom-block-type Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.)

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/checkoutpage/src/includes/render-checkout-button.php:53

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=checkoutpage
    • > Network (severe)
    wp-content/plugins/checkoutpage/src/views/admin-screenshot-3.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=checkoutpage
    • > Network (severe)
    wp-content/plugins/checkoutpage/src/views/admin-screenshot-4.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #5, #6 in checkoutpage/assets to your readme.txt
The official readme.txt might help

checkoutpage/checkoutpage.php 85% from 13 tests

"Checkout Page - Custom checkouts that boost your sales" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.4" instead of "5.8")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin611 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP66185229
JavaScript7273201
CSS217094
JSON20051
Sass14028
SVG2008

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.27MB with 0.66MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
src/views/admin-screenshot-1.png381.24KB207.82KB▼ 45.49%
src/views/admin-screenshot-2.png917.06KB379.78KB▼ 58.59%