84% connector-woo-odoo

Code Review | Connector Woo Odoo By Tech-Receptives

WordPress plugin Connector Woo Odoo By Tech-Receptives scored84%from 54 tests.

About plugin

  • Plugin page: connector-woo-odoo
  • Plugin version: 2.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2015
  • Latest release: Sep 21, 2015
  • Number of updates: 19
  • Update frequency: every 1.7 days
  • Top authors: techreceptives (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /7,082 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by Connector Woo Odoo By Tech-Receptives
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.92 ▼5.74
Dashboard /wp-admin3.31 ▲0.0143.27 ▼7.13
Posts /wp-admin/edit.php3.36 ▲0.0043.61 ▼3.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.25 ▼1.08
Media Library /wp-admin/upload.php3.23 ▲0.0034.02 ▲0.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Connector Woo Odoo By Tech-Receptives
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.18 ▼1.201.82 ▼0.2040.65 ▼12.67
Dashboard /wp-admin2,209 ▲214.83 ▼0.06104.32 ▼12.5438.42 ▼6.31
Posts /wp-admin/edit.php2,089 ▲31.99 ▲0.0034.50 ▼5.3632.94 ▼0.90
Add New Post /wp-admin/post-new.php1,520 ▼1423.49 ▲0.42659.83 ▲15.7871.52 ▲19.49
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0499.04 ▼0.7547.38 ▲6.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

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
Please 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/connector-woo-odoo/index.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Screenshot #1 (Enable the REST API Key before using the methods) image not found
Please take inspiration from this readme.txt

connector-woo-odoo/index.php 92% from 13 tests

The entry point to "Connector Woo Odoo By Tech-Receptives" version 2.4.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("connector-woo-odoo.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected1,386 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP134133431,386

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.38
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods80
▷ Static methods00.00%
▷ Public methods7188.75%
▷ Protected methods22.50%
▷ Private methods78.75%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png102.07KB26.92KB▼ 73.63%