89% ipresso-integration-for-woocommerce

Code Review | iPresso integration for WooCommerce

WordPress plugin iPresso integration for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: ipresso-integrati...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Aug 23, 2022
  • Latest release: Jun 15, 2023
  • Number of updates: 7
  • Update frequency: every 42.9 days
  • Top authors: ipressosa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /245 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.24ms] Passed 4 tests

Server-side resources used by iPresso integration for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.77 ▲3.40
Dashboard /wp-admin3.32 ▲0.0246.63 ▼1.59
Posts /wp-admin/edit.php3.37 ▲0.0150.14 ▼0.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.62 ▼2.03
Media Library /wp-admin/upload.php3.24 ▲0.0141.11 ▲4.77

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for iPresso integration for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.23 ▼1.192.00 ▲0.2443.27 ▼0.92
Dashboard /wp-admin2,218 ▲274.86 ▼1.05107.29 ▲2.2543.36 ▲2.02
Posts /wp-admin/edit.php2,101 ▲121.98 ▼0.0140.47 ▲0.6536.90 ▲2.33
Add New Post /wp-admin/post-new.php1,542 ▲2822.85 ▲5.30653.62 ▼43.2556.45 ▼11.28
Media Library /wp-admin/upload.php1,394 ▲94.20 ▼0.07100.23 ▼7.6444.53 ▼1.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: marketing, ipresso, automation

ipresso-integration-for-woocommerce/ipresso-integration-for-woocommerce.php 85% from 13 tests

"iPresso integration for WooCommerce" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages/")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages/")

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
Everything looks great! No dangerous files found in this plugin1,729 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP233386031,663
PO File1161866

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes14.35%
Methods184
▷ Static methods2211.96%
▷ Public methods16991.85%
▷ Protected methods00.00%
▷ Private methods158.15%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin