83% open-closed-woo-commerce-checkout-by-ritesh-ghimire

Code Review | Open Closed Woo commerce Checkout By Ritesh Ghimire

WordPress plugin Open Closed Woo commerce Checkout By Ritesh Ghimire scored83%from 54 tests.

About plugin

  • Plugin page: open-closed-woo-c...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.0
  • WordPress version: 6.3.1
  • First release: May 7, 2020
  • Latest release: May 7, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: riteshghimire9090 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /354 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.42ms] Passed 4 tests

Analyzing server-side resources used by Open Closed Woo commerce Checkout By Ritesh Ghimire
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.24 ▼5.65
Dashboard /wp-admin3.33 ▲0.0342.85 ▼1.65
Posts /wp-admin/edit.php3.38 ▲0.0344.36 ▲0.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.71 ▼12.29
Media Library /wp-admin/upload.php3.26 ▲0.0332.49 ▼2.08

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Open Closed Woo commerce Checkout By Ritesh Ghimire
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.131.64 ▼0.2639.66 ▼4.84
Dashboard /wp-admin2,206 ▲174.82 ▼0.07106.39 ▼4.9540.59 ▼0.32
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0140.46 ▲5.8933.86 ▼1.79
Add New Post /wp-admin/post-new.php1,514 ▼517.50 ▼5.69635.14 ▼56.7065.73 ▲1.87
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0395.97 ▼11.9740.41 ▼6.34

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/open-closed-woo-commerce-checkout-by-ritesh-ghimire/woocommerce-open-closed-by-ritesh-ghimire.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
You can take inspiration from this readme.txt

open-closed-woo-commerce-checkout-by-ritesh-ghimire/woocommerce-open-closed-by-ritesh-ghimire.php 69% from 13 tests

Analyzing the main PHP file in "Open Closed Woo commerce Checkout By Ritesh Ghimire" version 1.0.0
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("open-closed-woo-commerce-checkout-by-ritesh-ghimire.php" instead of "woocommerce-open-closed-by-ritesh-ghimire.php")
  • Git Repository: A Git repository was detected inside this plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected148 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11926148

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.85
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin