78% checkoutchamp

Code Review | Checkout Champ

WordPress plugin Checkout Champ scored78%from 54 tests.

About plugin

  • Plugin page: checkoutchamp
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2023
  • Latest release: Jan 23, 2023
  • Number of updates: 4
  • Update frequency: every 6.3 days
  • Top authors: tknuth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /187 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.15ms] Passed 4 tests

A check of server-side resources used by Checkout Champ
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.96 ▼0.23
Dashboard /wp-admin3.32 ▼0.0352.27 ▼8.85
Posts /wp-admin/edit.php3.37 ▲0.0152.13 ▲1.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.00 ▼13.34
Media Library /wp-admin/upload.php3.24 ▲0.0131.51 ▼2.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Checkout Champ
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲18213.92 ▼0.678.25 ▲6.6243.44 ▲2.04
Dashboard /wp-admin2,226 ▲354.85 ▼1.05111.41 ▲13.2034.07 ▼10.75
Posts /wp-admin/edit.php2,109 ▲202.01 ▼0.0034.37 ▼6.7329.13 ▼7.94
Add New Post /wp-admin/post-new.php1,543 ▲1018.21 ▼5.00604.24 ▼64.7962.54 ▲10.87
Media Library /wp-admin/upload.php1,408 ▲174.30 ▲0.0795.07 ▼4.7240.01 ▼5.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/checkoutchamp/public/partials/checkoutchamp-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/checkoutchamp/admin/partials/checkoutchamp-admin-display.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

checkoutchamp/checkoutchamp.php Passed 13 tests

The main PHP script in "Checkout Champ" version 1.0.0 is automatically included on every request by WordPress
60 characters long description:
CheckoutChamp is a subscription based services for ecommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin490 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12136536353
CSS249131
JavaScript24546

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.08
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/logo.png111.72KB39.77KB▼ 64.40%
image/contact-form-logo.png24.92KB9.16KB▼ 63.25%
image/pointer-icon.png0.48KB0.28KB▼ 41.27%