84% woo-payments-gateway-netevia

Code Review | Netevia Payments for WooCommerce

WordPress plugin Netevia Payments for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: woo-payments-gate...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 26, 2018
  • Latest release: Jul 27, 2018
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: netelementsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /606 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.02MB] [CPU: ▼1.18ms] Passed 4 tests

An overview of server-side resources used by Netevia Payments for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.74 ▼0.72
Dashboard /wp-admin3.32 ▲0.0247.54 ▼1.92
Posts /wp-admin/edit.php3.37 ▲0.0247.82 ▼3.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.09 ▲2.32
Media Library /wp-admin/upload.php3.24 ▲0.0235.97 ▲1.63

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Netevia Payments for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.151.72 ▼0.2941.27 ▼2.05
Dashboard /wp-admin2,203 ▲125.85 ▲0.9698.43 ▼10.7440.30 ▼4.10
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0339.93 ▲4.7736.61 ▼1.19
Add New Post /wp-admin/post-new.php1,534 ▲123.09 ▼0.40583.66 ▼118.2261.22 ▲4.33
Media Library /wp-admin/upload.php1,382 ▼34.20 ▼0.1292.69 ▼39.6340.70 ▼9.21

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
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Payment_Gateway_CC' not found in wp-content/plugins/woo-payments-gateway-netevia/class-netevia.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention: You can look at the official readme.txt

woo-payments-gateway-netevia/woo-netevia.php 92% from 13 tests

This is the main PHP file of "Netevia Payments for WooCommerce" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-payments-gateway-netevia.php" instead of "woo-netevia.php")

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
Success! There were no dangerous files found in this plugin363 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP392106363

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.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
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png74.29KB21.52KB▼ 71.03%
images/logo.png0.93KB0.91KB▼ 2.82%