78% invelity-mygls-connect

Code Review | Invelity MyGLS connect

WordPress plugin Invelity MyGLS connect scored 78% from 54 tests.

About plugin

  • Plugin page: invelity-mygls-co...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-5.4
  • WordPress version: 6.3.1
  • First release: Mar 23, 2020
  • Latest release: Oct 29, 2020
  • Number of updates: 7
  • Update frequency: every 34.1 days
  • Top authors: invelity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 1,716 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: ▼3.47ms] Passed 4 tests

Analyzing server-side resources used by Invelity MyGLS connect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.42 ▼4.55
Dashboard /wp-admin3.35 ▲0.0546.27 ▼2.38
Posts /wp-admin/edit.php3.40 ▲0.0546.85 ▼2.55
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.81 ▼4.38
Media Library /wp-admin/upload.php3.27 ▲0.0435.58 ▲2.60
MyGLS connect /wp-admin/admin.php?page=invelity-my-gls3.24195.02
Invelity plugins /wp-admin/admin.php?page=invelity-plugins3.24181.02

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Invelity MyGLS connect
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.30 ▼0.924.40 ▲2.7040.62 ▼10.00
Dashboard /wp-admin2,231 ▲404.85 ▼0.07108.89 ▲9.3544.47 ▼2.49
Posts /wp-admin/edit.php2,114 ▲252.02 ▲0.0239.92 ▼1.0634.03 ▼2.77
Add New Post /wp-admin/post-new.php1,535 ▼217.80 ▼0.32686.51 ▲65.6552.30 ▼11.49
Media Library /wp-admin/upload.php1,416 ▲284.22 ▼0.0698.05 ▲0.1247.47 ▲2.83
MyGLS connect /wp-admin/admin.php?page=invelity-my-gls9682.0528.4378.56
Invelity plugins /wp-admin/admin.php?page=invelity-plugins1,0782.0224.0958.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • invelity_my_gls_export_options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/invelity-mygls-connect/invelity-mygls-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-mygls-connect/lib/nusoap/class.soap_transport_http.php:15
    • > PHP Warning
      require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/invelity-mygls-connect/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-mygls-connect/lib/nusoap/class.soap_fault.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-mygls-connect/lib/nusoap/class.xmlschema.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-mygls-connect/lib/nusoap/class.soap_server.php:16
    • > PHP Fatal error
      require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/invelity-mygls-connect/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-mygls-connect/lib/nusoap/class.wsdl.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-mygls-connect/lib/nusoap/class.soap_val.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-mygls-connect/lib/nusoap/class.soapclient.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-mygls-connect/lib/nusoap/class.soap_parser.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Konfigurácia pluginu), #2 (Používanie pluginu), #3 (Používanie GLS online)
You can look at the official readme.txt

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

The main PHP script in "Invelity MyGLS connect" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 215 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin12,462 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP171,0125,20712,393
JSON30041
SVG30227
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
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.00
▷ Minimum class complexity1.00
▷ Maximum class complexity389.00
Average method complexity8.21
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes39
▷ Abstract classes00.00%
▷ Concrete classes39100.00%
▷ Final classes00.00%
Methods384
▷ Static methods00.00%
▷ Public methods36494.79%
▷ Protected methods00.00%
▷ Private methods205.21%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin