84% wc-integration-to-nettix

Code Review | Integration to NettiX for WooCommerce

WordPress plugin Integration to NettiX for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wc-integration-to...
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Oct 22, 2022
  • Latest release: Nov 4, 2023
  • Number of updates: 11
  • Update frequency: every 34.6 days
  • Top authors: orwokki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /377 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.36MB] [CPU: ▼1.11ms] Passed 4 tests

Analyzing server-side resources used by Integration to NettiX for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5242.76 ▲1.06
Dashboard /wp-admin3.69 ▲0.3945.24 ▼5.83
Posts /wp-admin/edit.php3.75 ▲0.3948.99 ▲5.16
Add New Post /wp-admin/post-new.php6.21 ▲0.3393.06 ▼3.35
Media Library /wp-admin/upload.php3.56 ▲0.3337.96 ▲3.70

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Integration to NettiX for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4114.19 ▼0.061.56 ▼0.2139.02 ▼5.93
Dashboard /wp-admin2,211 ▲315.61 ▼0.0692.65 ▲2.4939.53 ▼1.05
Posts /wp-admin/edit.php2,116 ▲161.99 ▲0.0341.63 ▲4.9438.43 ▲2.26
Add New Post /wp-admin/post-new.php1,543 ▲725.28 ▲2.27600.99 ▼68.9873.08 ▲23.54
Media Library /wp-admin/upload.php1,410 ▲104.18 ▼0.0698.60 ▲2.2341.83 ▲1.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration_NettiX\\Plugin\\Ad_Handler' not found in wp-content/plugins/wc-integration-to-nettix/src/classes/Plugin/Nettimoto_Ad_Handler.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration_NettiX\ettiX_Client\\Base_Client' not found in wp-content/plugins/wc-integration-to-nettix/src/classes/NettiX_Client/Nettiauto_Client.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/wc-integration-to-nettix/src/classes/WC_Integration_NettiX_Integration.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration_NettiX\\Plugin\\Ad_Handler' not found in wp-content/plugins/wc-integration-to-nettix/src/classes/Plugin/Nettiauto_Ad_Handler.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'WC_Integration_NettiX\\Cache\\Cache' not found in wp-content/plugins/wc-integration-to-nettix/src/classes/Cache/File_Cache.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration_NettiX\\Plugin\\Ad_Handler' not found in wp-content/plugins/wc-integration-to-nettix/src/classes/Plugin/Nettivene_Ad_Handler.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration_NettiX\ettiX_Client\\Base_Client' not found in wp-content/plugins/wc-integration-to-nettix/src/classes/NettiX_Client/Nettivene_Client.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration_NettiX\ettiX_Client\\Base_Client' not found in wp-content/plugins/wc-integration-to-nettix/src/classes/NettiX_Client/Nettimoto_Client.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Example list of downloaded external products) image not found
You can look at the official readme.txt

wc-integration-to-nettix/wc-integration-to-nettix.php 92% from 13 tests

The main PHP file in "Integration to NettiX for WooCommerce" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 184 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,807 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP193383431,643
PO File13436122
JavaScript112042

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity10.50
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes17
▷ Abstract classes211.76%
▷ Concrete classes1588.24%
▷ Final classes00.00%
Methods109
▷ Static methods00.00%
▷ Public methods5954.13%
▷ Protected methods2623.85%
▷ Private methods2422.02%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants00.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 are no PNG files in this plugin