84% nofrixion-for-woocommerce

Code Review | NoFrixion for WooCommerce

WordPress plugin NoFrixion for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: nofrixion-for-woo...
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: May 31, 2022
  • Latest release: Oct 23, 2023
  • Number of updates: 18
  • Update frequency: every 28.6 days
  • Top authors: nofrixion (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,452 total downloads

Benchmarks

Plugin footprint 83% from 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.32MB] [CPU: ▼3.24ms] Passed 4 tests

A check of server-side resources used by NoFrixion for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3639.38 ▼3.22
Dashboard /wp-admin3.66 ▲0.3546.09 ▼1.69
Posts /wp-admin/edit.php3.71 ▲0.3548.77 ▼1.09
Add New Post /wp-admin/post-new.php6.18 ▲0.2982.00 ▼6.97
Media Library /wp-admin/upload.php3.52 ▲0.2940.98 ▲7.87

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

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

Browser metrics Passed 4 tests

A check of browser resources used by NoFrixion for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.35 ▲0.171.88 ▲0.1639.67 ▼6.94
Dashboard /wp-admin2,213 ▲395.64 ▼0.1089.30 ▼13.1140.43 ▼4.51
Posts /wp-admin/edit.php2,116 ▲162.11 ▲0.0941.95 ▲8.3135.30 ▲2.48
Add New Post /wp-admin/post-new.php1,541 ▲1323.28 ▲0.16670.37 ▲45.7556.32 ▼0.92
Media Library /wp-admin/upload.php1,415 ▲154.19 ▼0.08109.05 ▲7.1948.13 ▲6.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • nofrixion_permalinks_flushed
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Nofrixion\\Http\\ResponseInterface' not found in wp-content/plugins/nofrixion-for-woocommerce/vendor/nofrixion/moneymoov-php/src/Http/Response.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Nofrixion\\Exception\ofrixionException' not found in wp-content/plugins/nofrixion-for-woocommerce/vendor/nofrixion/moneymoov-php/src/Exception/RequestException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PhpCsFixer\\Finder' not found in wp-content/plugins/nofrixion-for-woocommerce/vendor/nofrixion/moneymoov-php/.php-cs-fixer.dist.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Nofrixion\\Exception\ofrixionException' not found in wp-content/plugins/nofrixion-for-woocommerce/vendor/nofrixion/moneymoov-php/src/Exception/ConnectException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Nofrixion\\WC\\Gateway\ofrixionGateway' not found in wp-content/plugins/nofrixion-for-woocommerce/src/Gateway/NoFrixionPisp.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Nofrixion\\Client\\AbstractClient' not found in wp-content/plugins/nofrixion-for-woocommerce/vendor/nofrixion/moneymoov-php/src/Client/MerchantClient.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Nofrixion\\Exception\\RequestException' not found in wp-content/plugins/nofrixion-for-woocommerce/vendor/nofrixion/moneymoov-php/src/Exception/ForbiddenException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Nofrixion\\Client\\AbstractClient' not found in wp-content/plugins/nofrixion-for-woocommerce/vendor/nofrixion/moneymoov-php/src/Client/WebhookClient.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/nofrixion-for-woocommerce/src/Admin/GlobalSettings.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Nofrixion\\WC\\Gateway\ofrixionGateway' not found in wp-content/plugins/nofrixion-for-woocommerce/src/Gateway/NoFrixionCard.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: payment, woocommerce, payment processing, payment gateway, payments...

nofrixion-for-woocommerce/nofrixion-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "NoFrixion for WooCommerce" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Git Repository: Please do not include Git repositories in your plugin

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
Success! There were no dangerous files found in this plugin3,835 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP456941,1043,235
JavaScript26190334
JSON410148
Markdown228061
CSS17142
XML10015

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.37
Average class complexity13.24
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces12
Interfaces2
Traits0
Classes36
▷ Abstract classes12.78%
▷ Concrete classes3597.22%
▷ Final classes00.00%
Methods156
▷ Static methods3119.87%
▷ Public methods14190.38%
▷ Protected methods117.05%
▷ Private methods42.56%
Functions13
▷ Named functions215.38%
▷ Anonymous functions1184.62%
Constants25
▷ Global constants936.00%
▷ Class constants1664.00%
▷ Public constants1487.50%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin