78% kloudstores

Code Review | KloudStores Shopping Cart Plugin

WordPress plugin KloudStores Shopping Cart Plugin scored 78% from 54 tests.

About plugin

  • Plugin page: kloudstores
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2014
  • Latest release: Jun 26, 2014
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: kloudstores (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 900 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by KloudStores Shopping Cart Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.28 ▼3.66
Dashboard /wp-admin3.31 ▲0.0045.94 ▼0.20
Posts /wp-admin/edit.php3.36 ▲0.0044.19 ▼4.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.48 ▼3.59
Media Library /wp-admin/upload.php3.23 ▲0.0034.20 ▼2.52

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

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

Browser metrics Passed 4 tests

Checking browser requirements for KloudStores Shopping Cart Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲9713.23 ▼1.151.75 ▼0.2045.42 ▲3.29
Dashboard /wp-admin2,224 ▲364.84 ▼0.07103.89 ▼12.4741.37 ▼3.42
Posts /wp-admin/edit.php2,111 ▲221.97 ▼0.0240.62 ▲4.0939.38 ▲5.09
Add New Post /wp-admin/post-new.php1,380 ▼16220.05 ▲1.44519.20 ▼127.0931.62 ▼21.95
Media Library /wp-admin/upload.php1,406 ▲154.26 ▲0.0698.62 ▲2.6141.14 ▼1.65

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/kloudstores/plugin.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/kloudstores/templates/kloud_tpl.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kloudstores/iframe.php:8

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

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: cart, shopping cart, api, shop, shopping...

kloudstores/plugin.php 92% from 13 tests

"KloudStores Shopping Cart Plugin" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kloudstores.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected400 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP584105320
JavaScript1182380

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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