84% klementin-woo-infinite-shopping

Code Review | Klementin Infinite Shopping For Woocommerce

WordPress plugin Klementin Infinite Shopping For Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: klementin-woo-inf...
  • Plugin version: 1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 15, 2022
  • Latest release: Mar 17, 2022
  • Number of updates: 10
  • Update frequency: every 0.2 days
  • Top authors: klementinweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /247 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: ▼4.57ms] Passed 4 tests

This is a short check of server-side resources used by Klementin Infinite Shopping For Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.01 ▼6.36
Dashboard /wp-admin3.31 ▲0.0045.07 ▼2.17
Posts /wp-admin/edit.php3.36 ▲0.0046.00 ▼2.98
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.89 ▼6.77
Media Library /wp-admin/upload.php3.23 ▲0.0036.00 ▲2.56

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Klementin Infinite Shopping For Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.18 ▼1.461.88 ▼0.1443.36 ▼3.75
Dashboard /wp-admin2,203 ▲154.86 ▼1.13109.21 ▲7.9441.65 ▼2.12
Posts /wp-admin/edit.php2,068 ▼212.00 ▼0.0339.53 ▲3.2834.30 ▼0.37
Add New Post /wp-admin/post-new.php1,547 ▲518.31 ▲0.06626.52 ▼22.5667.76 ▲9.51
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0595.53 ▼6.3840.84 ▲0.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Klementin_wp' not found in wp-content/plugins/klementin-woo-infinite-shopping/vendor/klementinweb/klementin-wp/src/init.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
3 plugin tags: cart, woocommerce, checkout

klementin-woo-infinite-shopping/klementin-infinite-shopping-for-woocommerce.php 92% from 13 tests

The entry point to "Klementin Infinite Shopping For Woocommerce" version 1.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("klementin-woo-infinite-shopping.php" instead of "klementin-infinite-shopping-for-woocommerce.php")

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
No dangerous file extensions were detected1,891 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP27265467967
JSON300796
JavaScript418874
CSS215054

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.45
Average class complexity12.60
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.99
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods93
▷ Static methods3436.56%
▷ Public methods8995.70%
▷ Protected methods00.00%
▷ Private methods44.30%
Functions13
▷ Named functions323.08%
▷ Anonymous functions1076.92%
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
There were not PNG files found in your plugin