78% invelity-gls-connect

Code Review | Invelity GLS Connect

WordPress plugin Invelity GLS Connect scored78%from 54 tests.

About plugin

  • Plugin page: invelity-gls-connect
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.9.2
  • WordPress version: 6.3.1
  • First release: Mar 22, 2018
  • Latest release: May 2, 2019
  • Number of updates: 9
  • Update frequency: every 45.1 days
  • Top authors: invelity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,106 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
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.76ms] Passed 4 tests

This is a short check of server-side resources used by Invelity GLS Connect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.05 ▼0.17
Dashboard /wp-admin3.35 ▲0.0547.83 ▼4.75
Posts /wp-admin/edit.php3.40 ▲0.0545.01 ▼2.17
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.20 ▼11.93
Media Library /wp-admin/upload.php3.27 ▲0.0435.38 ▲0.47
Invelity plugins /wp-admin/admin.php?page=invelity-plugins3.24166.90
Gls connect /wp-admin/admin.php?page=invelity-gls-connect3.24201.19

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Invelity GLS Connect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.65 ▼1.001.77 ▼0.0245.76 ▼0.32
Dashboard /wp-admin2,234 ▲464.87 ▼0.19100.70 ▼18.6636.02 ▼8.40
Posts /wp-admin/edit.php2,114 ▲252.00 ▼0.0336.13 ▲0.6035.05 ▼0.09
Add New Post /wp-admin/post-new.php1,549 ▲3523.33 ▲5.74668.32 ▼9.0557.40 ▲5.43
Media Library /wp-admin/upload.php1,413 ▲284.26 ▲0.0895.20 ▼6.9942.41 ▼2.81
Invelity plugins /wp-admin/admin.php?page=invelity-plugins1,0772.1525.1293.50
Gls connect /wp-admin/admin.php?page=invelity-gls-connect9332.0325.5151.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/invelity-gls-connect/invelity-gls-connect.php
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-gls-connect/lib/nusoap/class.soap_fault.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-gls-connect/lib/nusoap/class.soap_val.php:17
    • > PHP Warning
      require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/invelity-gls-connect/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-gls-connect/lib/nusoap/class.soap_transport_http.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-gls-connect/lib/nusoap/class.wsdl.php:15
    • > PHP Fatal error
      require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/invelity-gls-connect/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-gls-connect/lib/nusoap/class.soap_parser.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-gls-connect/lib/nusoap/class.soap_server.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-gls-connect/lib/nusoap/class.soapclient.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-gls-connect/lib/nusoap/class.xmlschema.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

invelity-gls-connect/invelity-gls-connect.php 92% from 13 tests

The primary PHP file in "Invelity GLS Connect" version 1.1.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin11,865 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP169765,15411,796
JSON30041
SVG30227
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity72.37
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity8.49
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes00.00%
▷ Concrete classes38100.00%
▷ Final classes00.00%
Methods362
▷ Static methods00.00%
▷ Public methods35698.34%
▷ Protected methods00.00%
▷ Private methods61.66%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png195.37KB60.33KB▼ 69.12%
assets/screenshot-2.png40.36KB16.41KB▼ 59.34%