10% webo-facto-connector

Code Review | Webo-facto

WordPress plugin Webo-facto scored 10% from 54 tests.

About plugin

  • Plugin page: webo-facto-connector
  • Plugin version: 1.25
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9.2
  • WordPress version: 5.9.2
  • First release: Oct 31, 2018
  • Latest release: Mar 31, 2022
  • Number of updates: 80
  • Update frequency: every 15.6 days
  • Top authors: jeremieglotin (78.75%)tantely23 (22.5%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,887 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/webo-facto-connector/WeboFacto/Utils.php+24
    Undefined index: plugin

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

Server-side resources used by Webo-facto
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0168.65 ▲0.53
Dashboard /wp-admin3.41 ▲0.0043.55 ▲2.67
Posts /wp-admin/edit.php3.64 ▼0.0050.91 ▼5.52
Add New Post /wp-admin/post-new.php6.88 ▼0.09109.66 ▼1,195.65
Media Library /wp-admin/upload.php3.29 ▲0.0034.83 ▼4.80

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Webo-facto
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,811 ▲5315.77 ▲0.2311.04 ▲0.673.49 ▼0.59
Dashboard /wp-admin2,911 ▲326.45 ▲0.05183.84 ▼17.66218.49 ▲6.90
Posts /wp-admin/edit.php2,670 ▼183.45 ▲0.0285.05 ▲3.74173.32 ▼4.72
Add New Post /wp-admin/post-new.php1,635 ▲4116.76 ▼3.69625.57 ▼20.16205.51 ▼26.85
Media Library /wp-admin/upload.php1,695 ▼05.70 ▲0.08190.70 ▼38.52246.53 ▲9.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/webo-facto-connector/WeboFacto/Soap.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/webo-facto-connector/webo-facto-connector.php:24

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 96% from 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
3 plugin tags: webo-facto, sso, medialibs

webo-facto-connector/webo-facto-connector.php 92% from 13 tests

Analyzing the main PHP file in "Webo-facto" version 1.25
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 242 characters long)

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 detected359 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP569310359

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity17.00
▷ Minimum class complexity3.00
▷ Maximum class complexity42.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods2974.36%
▷ Protected methods00.00%
▷ Private methods1025.64%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.24MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png242.97KB60.50KB▼ 75.10%