72% wp-help-popup

Code Review | WP Help Popup

WordPress plugin WP Help Popup scored72%from 54 tests.

About plugin

  • Plugin page: wp-help-popup
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.6-6.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2018
  • Latest release: Aug 18, 2023
  • Number of updates: 25
  • Update frequency: every 72.0 days
  • Top authors: krishna121 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,160 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼7.26ms] Passed 4 tests

This is a short check of server-side resources used by WP Help Popup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1642.20 ▼0.10
Dashboard /wp-admin3.45 ▲0.1058.82 ▼10.15
Posts /wp-admin/edit.php3.57 ▲0.2154.45 ▲0.05
Add New Post /wp-admin/post-new.php6.03 ▲0.1490.91 ▼18.82
Media Library /wp-admin/upload.php3.38 ▲0.1439.36 ▲1.19
WP Help Popup /wp-admin/admin.php?page=wp_help_overview3.3835.02
Our Plugins /wp-admin/admin.php?page=wp_our_plugins3.3732.28
Settings /wp-admin/admin.php?page=wp_help_settings3.4440.83

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
wphp_options_group
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Help Popup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,050 ▲26413.52 ▼1.049.24 ▲7.4337.04 ▼8.20
Dashboard /wp-admin2,228 ▲595.55 ▼0.0396.45 ▼1.1486.28 ▲38.48
Posts /wp-admin/edit.php2,154 ▲541.99 ▼0.0136.24 ▼5.8033.11 ▼3.52
Add New Post /wp-admin/post-new.php1,588 ▲6223.14 ▼0.13662.10 ▲14.6862.93 ▲10.68
Media Library /wp-admin/upload.php1,448 ▲544.13 ▼0.00103.55 ▲3.8066.44 ▲23.45
WP Help Popup /wp-admin/admin.php?page=wp_help_overview1,0211.8125.6650.29
Our Plugins /wp-admin/admin.php?page=wp_our_plugins1,1382.0234.3922.21
Settings /wp-admin/admin.php?page=wp_help_settings1,5332.2136.3851.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • wphp_options_group
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-help-popup/include/class-wphp-form-fields.php
    • > /wp-content/plugins/wp-help-popup/view/ourplugins.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant WPHP_IMAGE - assumed 'WPHP_IMAGE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-help-popup/view/welcome.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-help-popup/view/welcome.php:14
    • > PHP Warning
      Use of undefined constant WPHP_IMAGE - assumed 'WPHP_IMAGE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-help-popup/view/welcome.php on line 6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp_help_settings
    • > Network (severe)
    wp-content/plugins/wp-help-popup/assets/images/setting_pop_icon.PNG - 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

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: feedback submission, live chat, recent posts, help box search, help box ajax search...

wp-help-popup/wp-help-popup.php Passed 13 tests

The primary PHP file in "WP Help Popup" version 1.0.9 is used by WordPress to initiate all plugin functionality
94 characters long description:
A Wordpress Extension to show quick help using What's app chat and site search using a widget.

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
Good job! No executable or dangerous file extensions detected10,487 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,5034345,706
CSS52281703,316
PHP4341861,465

PHP code Passed 2 tests

This is a very shot 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.46
Average class complexity124.00
▷ Minimum class complexity121.00
▷ Maximum class complexity127.00
Average method complexity8.45
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods00.00%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
28 PNG files occupy 1.50MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/31297.png6.11KB6.65KB0.00%
assets/screenshot-2.png41.77KB12.04KB▼ 71.18%
assets/banner-772x250.png48.47KB11.97KB▼ 75.31%
assets/images/help_icon.png0.33KB0.50KB0.00%
assets/images/help_circled_icon.png1.12KB1.32KB0.00%