78% wp-helptap-connect

Code Review | WP HelpTap Connect

WordPress plugin WP HelpTap Connect scored78%from 54 tests.

About plugin

  • Plugin page: wp-helptap-connect
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: May 31, 2016
  • Latest release: May 31, 2016
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: helptap (75%)arjunskumar (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.86ms] Passed 4 tests

An overview of server-side resources used by WP HelpTap Connect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.80 ▼7.14
Dashboard /wp-admin3.33 ▼0.0145.75 ▼7.87
Posts /wp-admin/edit.php3.38 ▲0.0350.66 ▲4.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.01 ▼7.88
Media Library /wp-admin/upload.php3.25 ▲0.0332.52 ▼0.56
WP HelpTap Connect /wp-admin/options-general.php?page=wp_helptap_connect3.2230.19

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP HelpTap Connect
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.17 ▼1.211.92 ▲0.0943.42 ▲4.44
Dashboard /wp-admin2,207 ▲215.84 ▲0.95107.82 ▼1.6236.44 ▼0.88
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0539.90 ▲0.9535.57 ▲1.64
Add New Post /wp-admin/post-new.php1,517 ▼217.51 ▼5.65642.28 ▲50.1751.23 ▼5.36
Media Library /wp-admin/upload.php1,392 ▲74.33 ▲0.1497.95 ▼2.7143.03 ▼1.00
WP HelpTap Connect /wp-admin/options-general.php?page=wp_helptap_connect6901.146.6317.74

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_helptap_connect
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/wp-helptap-connect/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/wp-helptap-connect/templates/settings.php(5): do_settings_fields()
    #1 wp-content/plugins/wp-helptap-connect/helptap-connect.php(86): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): WP_HelpTap_Connect->helptap_connect_settings_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-helptap-connect/templates/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-helptap-connect/helptap-connect.php:150

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
2 plugin tags: helptap, tapname

wp-helptap-connect/helptap-connect.php 92% from 13 tests

"WP HelpTap Connect" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-helptap-connect.php" instead of "helptap-connect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected134 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22846134

PHP code Passed 2 tests

A short review of 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.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin