84% kadence-woocommerce-elementor

Code Review | Kadence WooCommerce Elementor

WordPress plugin Kadence WooCommerce Elementor scored84%from 54 tests.

About plugin

  • Plugin page: kadence-woocommer...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2018
  • Latest release: Jan 13, 2023
  • Number of updates: 11
  • Update frequency: every 152.1 days
  • Top authors: britner (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

4,000+ active /58,064 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Kadence WooCommerce Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.53 ▼2.35
Dashboard /wp-admin3.31 ▲0.0144.92 ▼3.17
Posts /wp-admin/edit.php3.36 ▲0.0044.47 ▼4.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.17 ▼12.94
Media Library /wp-admin/upload.php3.23 ▲0.0032.47 ▲2.06

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Kadence WooCommerce Elementor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲7713.24 ▼1.344.48 ▲2.6740.09 ▼6.25
Dashboard /wp-admin2,215 ▲245.83 ▲0.77101.43 ▲0.4542.97 ▼0.80
Posts /wp-admin/edit.php2,100 ▲112.01 ▼0.0334.69 ▼0.8034.41 ▼0.09
Add New Post /wp-admin/post-new.php1,554 ▲2118.51 ▼4.40639.01 ▲12.8165.34 ▲10.22
Media Library /wp-admin/upload.php1,400 ▲94.19 ▼0.0294.79 ▼8.6440.30 ▼3.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kadence-woocommerce-elementor/kadence-woocommerce-elementor.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: woocommerce, elementor

kadence-woocommerce-elementor/kadence-woocommerce-elementor.php 92% from 13 tests

The main PHP script in "Kadence WooCommerce Elementor" version 1.0.8 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)

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 plugin2,698 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP304675862,568
CSS101120
JavaScript1147
JSON3003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.21
▷ Minimum class complexity2.00
▷ Maximum class complexity58.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods177
▷ Static methods1910.73%
▷ Public methods12168.36%
▷ Protected methods5430.51%
▷ Private methods21.13%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected