94% advatix-oms-sync

Code Review | Advatix OMS Sync

WordPress plugin Advatix OMS Sync scored 94% from 54 tests.

About plugin

  • Plugin page: advatix-oms-sync
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8
  • WordPress version: 5.9.2
  • First release: Oct 1, 2020
  • Latest release: Aug 6, 2021
  • Number of updates: 4
  • Update frequency: every 77.5 days
  • Top authors: rajat7150 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 253 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼298.79ms] Passed 4 tests

Analyzing server-side resources used by Advatix OMS Sync
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0157.65 ▲4.89
Dashboard /wp-admin3.41 ▲0.0032.23 ▼1.68
Posts /wp-admin/edit.php3.64 ▲0.0039.77 ▲4.25
Add New Post /wp-admin/post-new.php6.88 ▼0.0995.76 ▼1,199.28
Media Library /wp-admin/upload.php3.29 ▲0.0023.93 ▲1.57

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advatix OMS Sync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.88 ▲0.216.56 ▲0.182.83 ▲0.13
Dashboard /wp-admin2,895 ▲346.10 ▼0.06117.20 ▼18.67156.99 ▼5.92
Posts /wp-admin/edit.php2,688 ▲33.06 ▼0.2961.99 ▼2.76137.74 ▼10.16
Add New Post /wp-admin/post-new.php1,668 ▲818.43 ▼4.34373.51 ▼51.72153.83 ▼8.18
Media Library /wp-admin/upload.php1,701 ▲35.51 ▼0.01141.59 ▼3.28185.27 ▼0.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/advatix-oms-sync/main.php:13
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/advatix-oms-sync/includes/template.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: woo, advatix, advatix oms, woo commerce, e-commerce...

advatix-oms-sync/main.php 92% from 13 tests

This is the main PHP file of "Advatix OMS Sync" version 1.0.0, 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:
  • Main file name: Name the main plugin file the same as the plugin slug ("advatix-oms-sync.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,021 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1894.74%
▷ Anonymous functions15.26%
▷ Global constants00.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 are no PNG files in this plugin