10% webo-facto-connector

Code Review | Webo-facto

WordPress plugin Webo-facto scored10%from 54 tests.

About plugin

  • Plugin page: webo-facto-connector
  • Plugin version: 1.36
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 31, 2018
  • Latest release: Jun 20, 2023
  • Number of updates: 92
  • Update frequency: every 18.5 days
  • Top authors: jeremieglotin (70.65%)tantely23 (30.43%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /7,012 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/webo-facto-connector/WeboFacto/Utils.php+24
    Undefined index: plugin

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

Analyzing server-side resources used by Webo-facto
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.73 ▼0.68
Dashboard /wp-admin3.31 ▼0.0445.67 ▼16.80
Posts /wp-admin/edit.php3.36 ▲0.0045.66 ▼4.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.93 ▼16.74
Media Library /wp-admin/upload.php3.23 ▲0.0035.14 ▲2.86

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Webo-facto
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.034.97 ▲3.2842.95 ▲6.62
Dashboard /wp-admin2,206 ▲155.79 ▲0.9198.04 ▼4.7739.44 ▼2.59
Posts /wp-admin/edit.php2,086 ▼32.13 ▲0.1134.78 ▼2.0535.08 ▲1.78
Add New Post /wp-admin/post-new.php1,519 ▲523.08 ▲5.58668.69 ▲40.1658.72 ▲9.22
Media Library /wp-admin/upload.php1,388 ▲64.25 ▼0.00104.01 ▲4.3646.35 ▲4.16

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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

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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/webo-facto-connector/webo-facto-connector.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/webo-facto-connector/WeboFacto/Soap.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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: medialibs, webo-facto, sso

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

Analyzing the main PHP file in "Webo-facto" version 1.36
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 242 characters long)

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
Good job! No executable or dangerous file extensions detected400 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP577317400

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity21.00
▷ Minimum class complexity3.00
▷ Maximum class complexity51.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods2972.50%
▷ Protected methods00.00%
▷ Private methods1127.50%
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%