63% wp-gestsup-connector

Code Review | WP GestSup Connector

WordPress plugin WP GestSup Connector scored 63% from 54 tests.

About plugin

  • Plugin page: wp-gestsup-connector
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 5.8.1
  • First release: Sep 19, 2015
  • Latest release: Feb 14, 2019
  • Number of updates: 75
  • Update frequency: every 16.6 days
  • Top authors: sebastien@thivinfo.com (76%)sebastienserre (25.33%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,699 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.06MB] [CPU: ▼204.38ms] Passed 4 tests

Server-side resources used by WP GestSup Connector
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.57 ▼0.2610.45 ▼25.77
Dashboard /wp-admin2.59 ▼0.4611.78 ▼37.98
Posts /wp-admin/edit.php2.59 ▼0.528.69 ▼66.82
Add New Post /wp-admin/post-new.php2.59 ▼2.849.67 ▼685.07
Media Library /wp-admin/upload.php2.59 ▼0.419.56 ▼27.63

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 441 new files
Database: no new tables, 1 new option
New WordPress options
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

Checking browser requirements for WP GestSup Connector
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,759 ▼83714.57 ▼1.127.08 ▼3.2243.79 ▼6.22
Dashboard /wp-admin2,049 ▼8822.03 ▼4.1258.77 ▼104.47115.11 ▼3.26
Posts /wp-admin/edit.php3,026 ▲2877.23 ▲4.54156.47 ▲29.6092.29 ▼12.72
Add New Post /wp-admin/post-new.php1,545 ▼13818.25 ▼0.55381.23 ▼5.54127.48 ▲5.57
Media Library /wp-admin/upload.php1,874 ▲646.63 ▲1.63164.60 ▲12.24127.22 ▼4.84
Gestsup Connector /wp-admin/crb_carbon_fields_container_gestsup_connector.php260.900.0611.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/wp-gestsup-connector/inc/admin/class-options.php+7
    The use statement with non-compound name 'add_action' has no effect
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • recovery_mode_email_last_sent

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 117× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Container/Condition/Blog_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Fulfillable\\Translator\\Translator' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Translator/Array_Translator.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Field/Radio_Image_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Datastore/Widget_Datastore.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Container/Post_Meta_Container.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Field/Field.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Event\\PersistentListener' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Event/SingleEventListener.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Container/User_Meta_Container.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Field/Radio_Field.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/wp-gestsup-connector/inc/vendor/htmlburger/carbon-fields/core/Service/Meta_Query_Service.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/crb_carbon_fields_container_gestsup_connector.php
    • > Network (severe)
    wp-admin/crb_carbon_fields_container_gestsup_connector.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 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
5 plugin tags: gestsup, ticket, support, helpdesk, connector

wp-gestsup-connector/wp-gestsup-connector.php Passed 13 tests

The main PHP file in "WP GestSup Connector" ver. 1.5.4 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Connect your WordPress site to the helpdesk GestSup

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
Everything looks great! No dangerous files found in this plugin28,628 lines of code in 400 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1694,8737,89312,000
PHP1492,5936,2819,315
PO File181,5302,1393,509
CSS93491,0711,696
Sass4528901,525
JSON400358
HTML2102118
Markdown324068
Bourne Shell1111939

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.36
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces24
Interfaces5
Traits0
Classes124
▷ Abstract classes118.87%
▷ Concrete classes11391.13%
▷ Final classes10.88%
Methods912
▷ Static methods10311.29%
▷ Public methods74681.80%
▷ Protected methods16317.87%
▷ Private methods30.33%
Functions111
▷ Named functions3329.73%
▷ Anonymous functions7870.27%
Constants34
▷ Global constants926.47%
▷ Class constants2573.53%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png0.71KB0.76KB0.00%