68% bootstrap-one-page-woocommerce-checkout

Code Review | Bootstrap one page woocommerce checkout

WordPress plugin Bootstrap one page woocommerce checkout scored68%from 54 tests.

About plugin

  • Plugin page: bootstrap-one-pag...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 6, 2015
  • Latest release: Jul 6, 2015
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: mahabub hasan (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /16,178 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.95MB] [CPU: ▼40.95ms] Passed 4 tests

A check of server-side resources used by Bootstrap one page woocommerce checkout
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.91 ▲2.87
Dashboard /wp-admin3.01 ▼0.3422.58 ▼43.05
Posts /wp-admin/edit.php3.01 ▼0.3526.96 ▼23.86
Add New Post /wp-admin/post-new.php3.01 ▼2.8822.95 ▼83.62
Media Library /wp-admin/upload.php3.01 ▼0.2221.66 ▼13.25
Checkout Settings /wp-admin/options-general.php?page=one_settings3.0122.37

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Bootstrap one page woocommerce checkout
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲3913.21 ▼1.454.78 ▲2.4641.75 ▼2.65
Dashboard /wp-admin2,207 ▲195.79 ▼0.07101.95 ▼8.8940.71 ▼3.28
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0139.73 ▲2.7134.44 ▼0.85
Add New Post /wp-admin/post-new.php1,534 ▼018.30 ▼4.93646.51 ▼36.4673.83 ▲23.01
Media Library /wp-admin/upload.php1,395 ▲104.19 ▼0.02103.12 ▼10.3647.43 ▼0.04
Checkout Settings /wp-admin/options-general.php?page=one_settings8422.0224.4628.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=one_settings
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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 take a closer look at the following
  • 2× 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/bootstrap-one-page-woocommerce-checkout/includes/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bootstrap-one-page-woocommerce-checkout/includes/setting.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 28 tag instead of maximum 10
The official readme.txt might help

bootstrap-one-page-woocommerce-checkout/Bootstrap-one-page-woocommerce-checkout.php 85% from 13 tests

Analyzing the main PHP file in "Bootstrap one page woocommerce checkout" version 1.1.1
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bootstrap-one-page-woocommerce-checkout.php" instead of "Bootstrap-one-page-woocommerce-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
Success! There were no dangerous files found in this plugin173 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP52321151
PO File15422

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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