Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 33.39 ▲11.95 |
Dashboard /wp-admin | 3.09 ▲0.04 | 42.02 ▼2.97 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 40.43 ▼2.05 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 86.23 ▼577.36 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 32.31 ▼0.61 |
Commerce Sciences /wp-admin/options-general.php?page=cs_wp_woo_admin | 3.00 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.92 ▲0.39 | 9.26 ▲1.15 | 44.79 ▲0.30 |
Dashboard /wp-admin | 2,975 ▲41 | 5.91 ▼0.11 | 138.16 ▼5.73 | 105.67 ▼1.64 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▼0.01 | 65.89 ▼0.54 | 89.17 ▼1.75 |
Add New Post /wp-admin/post-new.php | 1,503 ▲5 | 18.58 ▼0.26 | 351.76 ▼18.36 | 103.45 ▼9.98 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.02 ▼0.02 | 145.28 ▼15.19 | 121.70 ▲9.16 |
Commerce Sciences /wp-admin/options-general.php?page=cs_wp_woo_admin | 1,076 | 2.05 | 53.33 | 84.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
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: 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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 11 | 190 |
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 code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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