84% dibs-easy-for-woocommerce

Code Review | Nets Easy for WooCommerce

WordPress plugin Nets Easy for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: dibs-easy-for-woo...
  • Plugin version: 2.6.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2017
  • Latest release: Nov 14, 2023
  • Number of updates: 191
  • Update frequency: every 12.1 days
  • Top authors: dibspayment (100%)Otto42 (1.05%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /85,933 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Nets Easy for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.05 ▼2.05
Dashboard /wp-admin3.31 ▼0.0447.24 ▼16.97
Posts /wp-admin/edit.php3.36 ▲0.0046.30 ▼0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.38 ▼8.07
Media Library /wp-admin/upload.php3.23 ▲0.0033.48 ▲0.83

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Nets Easy for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1814.32 ▼0.261.97 ▲0.0743.82 ▼0.71
Dashboard /wp-admin2,198 ▲185.65 ▼0.0498.42 ▲5.7344.26 ▲2.20
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0635.64 ▼2.3132.83 ▼0.74
Add New Post /wp-admin/post-new.php1,526 ▼1023.30 ▲0.05665.77 ▼21.7652.32 ▼1.01
Media Library /wp-admin/upload.php1,394 ▼64.18 ▲0.0198.89 ▼0.4641.44 ▼0.70

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WC() in wp-content/plugins/dibs-easy-for-woocommerce/templates/nets-easy-checkout.php:10

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 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: nets easy, dibs, nets, e-commerce, woocommerce...

dibs-easy-for-woocommerce/dibs-easy-for-woocommerce.php 92% from 13 tests

The main PHP script in "Nets Easy for WooCommerce" version 2.6.1 is automatically included on every request by WordPress
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected5,594 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
PHP529802,4474,472
JavaScript571167786
PO File183104259
CSS43177

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.30
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes43
▷ Abstract classes49.30%
▷ Concrete classes3990.70%
▷ Final classes00.00%
Methods233
▷ Static methods5222.32%
▷ Public methods17775.97%
▷ Protected methods5121.89%
▷ Private methods52.15%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin