100% commerce-sciences-for-woocommerce

Code Review | Commerce Sciences integration

WordPress plugin Commerce Sciences integration scored 100% from 54 tests.

About plugin

  • Plugin page: commerce-sciences...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Dec 23, 2014
  • Latest release: Apr 12, 2015
  • Number of updates: 4
  • Update frequency: every 27.7 days
  • Top authors: roykleincs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 533 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Commerce Sciences integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1533.39 ▲11.95
Dashboard /wp-admin3.09 ▲0.0442.02 ▼2.97
Posts /wp-admin/edit.php3.14 ▲0.0440.43 ▼2.05
Add New Post /wp-admin/post-new.php5.45 ▲0.0286.23 ▼577.36
Media Library /wp-admin/upload.php3.04 ▲0.0332.31 ▼0.61
Commerce Sciences /wp-admin/options-general.php?page=cs_wp_woo_admin3.0030.22

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Commerce Sciences integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.92 ▲0.399.26 ▲1.1544.79 ▲0.30
Dashboard /wp-admin2,975 ▲415.91 ▼0.11138.16 ▼5.73105.67 ▼1.64
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0165.89 ▼0.5489.17 ▼1.75
Add New Post /wp-admin/post-new.php1,503 ▲518.58 ▼0.26351.76 ▼18.36103.45 ▼9.98
Media Library /wp-admin/upload.php1,812 ▲25.02 ▼0.02145.28 ▼15.19121.70 ▲9.16
Commerce Sciences /wp-admin/options-general.php?page=cs_wp_woo_admin1,0762.0553.3384.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive 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)
Everything seems fine, but this is not an exhaustive test


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: personalization, campaigns

commerce-sciences-for-woocommerce/commercesciences-wp-woo.php 92% from 13 tests

The main PHP script in "Commerce Sciences integration" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("commerce-sciences-for-woocommerce.php" instead of "commercesciences-wp-woo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected190 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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 are no PNG files in this plugin