90% wc-theme-integration

Code Review | Integration for WooCommerce

WordPress plugin Integration for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wc-theme-integration
  • Plugin version: 1.5.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Mar 12, 2021
  • Latest release: Nov 17, 2023
  • Number of updates: 29
  • Update frequency: every 33.8 days
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,994 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Integration for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.39 ▼1.25
Dashboard /wp-admin3.35 ▲0.0044.03 ▼19.34
Posts /wp-admin/edit.php3.46 ▲0.1046.29 ▼0.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.39 ▼20.63
Media Library /wp-admin/upload.php3.27 ▲0.0431.88 ▼3.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 118 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Integration for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.25 ▼0.491.91 ▲0.2439.03 ▼3.82
Dashboard /wp-admin2,198 ▲175.63 ▼0.0996.51 ▼5.2643.14 ▲2.60
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0640.04 ▲0.8835.85 ▼1.68
Add New Post /wp-admin/post-new.php1,529 ▲323.37 ▼0.17654.76 ▲49.4055.37 ▼2.31
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.0594.16 ▼11.9042.37 ▼1.81

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: themes, webman, woocommerce, webman design

wc-theme-integration/wc-theme-integration.php 92% from 13 tests

"Integration for WooCommerce" version 1.5.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected4,445 lines of code in 114 files:
LanguageFilesBlank linesComment linesLines of code
Sass917331263,100
PHP145871,000925
Markdown11180282
PO File1242594
JavaScript2111339
CSS5005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.31
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods65
▷ Static methods65100.00%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants6
▷ Global constants6100.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 were not PNG files found in your plugin