84% novamodule-woocommerce

Code Review | Nova Module Woocommerce

WordPress plugin Nova Module Woocommerce scored 84% from 54 tests.

About plugin

  • Plugin page: novamodule-woocom...
  • Plugin version: 2.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2019
  • Latest release: Sep 14, 2023
  • Number of updates: 63
  • Update frequency: every 22.5 days
  • Top authors: ravikasarla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,467 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.96ms] Passed 4 tests

A check of server-side resources used by Nova Module Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.04 ▼1.48
Dashboard /wp-admin3.31 ▲0.0046.56 ▼2.77
Posts /wp-admin/edit.php3.36 ▲0.0049.81 ▲1.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.99 ▼12.60
Media Library /wp-admin/upload.php3.23 ▲0.0034.40 ▲2.60

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nova Module Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.45 ▼0.311.74 ▼0.5338.27 ▼8.02
Dashboard /wp-admin2,206 ▲154.86 ▼0.04105.74 ▼1.3943.28 ▼4.08
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0241.03 ▼2.4134.60 ▲1.43
Add New Post /wp-admin/post-new.php1,542 ▲2823.23 ▲5.75632.49 ▼50.9167.51 ▲8.74
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0396.12 ▼0.9043.74 ▼4.53

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/novamodule-woocommerce/novamodule-woocommerce.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: netsuite, celigo, woocommerce, integration, integration-app...

novamodule-woocommerce/novamodule-woocommerce.php Passed 13 tests

The principal PHP file in "Nova Module Woocommerce" v. 2.4.1 is loaded by WordPress automatically on each request
111 characters long description:
Novamodule plug-in helpful to integrate with IO. Woocommerce should be installed and active to use this plugin.

Code Analysis 97% from 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 plugin2,418 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP112966332,418

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 108)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity53.50
▷ Minimum class complexity1.00
▷ Maximum class complexity215.00
Average method complexity9.20
▷ Minimum method complexity1.00
▷ Maximum method complexity108.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods64
▷ Static methods00.00%
▷ Public methods3148.44%
▷ Protected methods23.12%
▷ Private methods3148.44%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants1
▷ Global constants1100.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