90% kitcart

Code Review | Kitcart

WordPress plugin Kitcart scored 90% from 54 tests.

About plugin

  • Plugin page: kitcart
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8
  • WordPress version: 5.9.2
  • First release: Nov 24, 2021
  • Latest release: Nov 24, 2021
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: kitcartcommerce (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 91 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼309.05ms] Passed 4 tests

Server-side resources used by Kitcart
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0453.26 ▼10.98
Dashboard /wp-admin3.45 ▲0.0432.96 ▼1.45
Posts /wp-admin/edit.php3.67 ▲0.0338.94 ▲0.64
Add New Post /wp-admin/post-new.php6.91 ▼0.0693.51 ▼1,223.33
Media Library /wp-admin/upload.php3.32 ▲0.0323.04 ▼0.45

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
kitcart_redirect_to_settings

Browser metrics Passed 4 tests

Kitcart: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲6115.84 ▼0.156.76 ▲0.542.46 ▼0.30
Dashboard /wp-admin2,909 ▲516.23 ▲0.04115.55 ▼31.42153.02 ▼16.23
Posts /wp-admin/edit.php2,715 ▲243.24 ▼0.0067.48 ▲3.76140.22 ▼6.91
Add New Post /wp-admin/post-new.php1,676 ▲1516.17 ▼0.63419.37 ▼13.42156.76 ▼2.09
Media Library /wp-admin/upload.php1,719 ▲215.49 ▼0.03136.18 ▼2.31183.86 ▲1.66

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 1 option in the database
    • kitcart_redirect_to_settings

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: storefront, record sales, kitcart, cart, e-commerce...

kitcart/kitcart.php 92% from 13 tests

"Kitcart" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected150 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13845150

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin