78% invelity-sps-connect

Code Review | Invelity SPS connect

WordPress plugin Invelity SPS connect scored78%from 54 tests.

About plugin

  • Plugin page: invelity-sps-connect
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Jan 17, 2019
  • Latest release: Jul 2, 2020
  • Number of updates: 13
  • Update frequency: every 41.0 days
  • Top authors: invelity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /980 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.24MB] [CPU: ▼5.37ms] Passed 4 tests

Server-side resources used by Invelity SPS connect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2643.86 ▲1.94
Dashboard /wp-admin3.59 ▲0.2845.21 ▼2.69
Posts /wp-admin/edit.php3.64 ▲0.2845.09 ▼0.00
Add New Post /wp-admin/post-new.php6.11 ▲0.2283.82 ▼20.72
Media Library /wp-admin/upload.php3.45 ▲0.2238.43 ▲3.59
Sps connect /wp-admin/admin.php?page=invelity-sps-connect3.48192.47
Invelity plugins /wp-admin/admin.php?page=invelity-plugins3.48162.31

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
invelity_sps_connect_options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Invelity SPS connect: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.30 ▼1.001.89 ▼0.0144.25 ▼1.25
Dashboard /wp-admin2,233 ▲454.86 ▼0.9999.05 ▼7.6338.64 ▼3.43
Posts /wp-admin/edit.php2,113 ▲242.06 ▲0.0633.05 ▼4.7533.01 ▼0.81
Add New Post /wp-admin/post-new.php1,537 ▲2323.13 ▲5.51662.00 ▲38.6645.09 ▼16.88
Media Library /wp-admin/upload.php1,409 ▲184.19 ▼0.04103.32 ▲6.0646.73 ▲1.35
Sps connect /wp-admin/admin.php?page=invelity-sps-connect1,0082.0228.3878.60
Invelity plugins /wp-admin/admin.php?page=invelity-plugins1,0792.0123.1271.14

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/invelity-sps-connect/invelity-sps-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-sps-connect/lib/nusoap/class.xmlschema.php:15
    • > PHP Fatal error
      require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/php') in wp-content/plugins/invelity-sps-connect/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-sps-connect/lib/nusoap/class.soapclient.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-sps-connect/lib/nusoap/class.soap_server.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-sps-connect/lib/nusoap/class.soap_val.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-sps-connect/lib/nusoap/class.soap_transport_http.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-sps-connect/lib/nusoap/class.soap_fault.php:14
    • > PHP Warning
      require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in wp-content/plugins/invelity-sps-connect/lib/nusoap/nusoapmime.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-sps-connect/lib/nusoap/class.soap_parser.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'nusoap_base' not found in wp-content/plugins/invelity-sps-connect/lib/nusoap/class.wsdl.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors field is missing
  • Screenshots: Screenshot #3 (Používanie GLS online) image required
The official readme.txt is a good inspiration

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

"Invelity SPS connect" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 218 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin12,270 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP181,1165,17912,195
JSON30041
SVG30227
CSS2007

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.47
Average class complexity45.97
▷ Minimum class complexity1.00
▷ Maximum class complexity388.00
Average method complexity8.06
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes62
▷ Abstract classes00.00%
▷ Concrete classes62100.00%
▷ Final classes00.00%
Methods395
▷ Static methods00.00%
▷ Public methods38998.48%
▷ Protected methods00.00%
▷ Private methods61.52%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants23
▷ Global constants14.35%
▷ Class constants2295.65%
▷ Public constants22100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin