89% iprom-integration-for-woocommerce

Code Review | iPROM integration for WooCommerce

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

About plugin

  • Plugin page: iprom-integration...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 20, 2021
  • Latest release: Dec 20, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: iprom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /327 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.81ms] Passed 4 tests

Analyzing server-side resources used by iPROM integration for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0633.98 ▼4.30
Dashboard /wp-admin3.37 ▲0.0649.82 ▲3.17
Posts /wp-admin/edit.php3.48 ▲0.1248.46 ▲0.85
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.57 ▼6.07
Media Library /wp-admin/upload.php3.29 ▲0.0636.50 ▲2.28

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for iPROM integration for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.11 ▼0.241.67 ▼0.2939.70 ▲0.45
Dashboard /wp-admin2,200 ▲235.51 ▼0.1586.02 ▼3.1738.68 ▼2.61
Posts /wp-admin/edit.php2,111 ▲112.02 ▲0.0641.05 ▲3.6735.85 ▼2.30
Add New Post /wp-admin/post-new.php1,535 ▲923.23 ▼0.31621.13 ▼74.3151.16 ▼0.38
Media Library /wp-admin/upload.php1,411 ▲144.26 ▲0.0994.59 ▼6.4441.99 ▼2.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: iprom, woocommerce

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

The primary PHP file in "iPROM integration for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
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 ("iprom-integration-for-woocommerce.php" instead of "wc-iprom.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected394 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP186123342
PO File1151652

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods1578.95%
▷ Protected methods210.53%
▷ Private methods210.53%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin