88% dreamfox-helpspot-live-lookup

Code Review | Dreamfoxmedia Helpspot live lookup

WordPress plugin Dreamfoxmedia Helpspot live lookup scored 88% from 54 tests.

About plugin

  • Plugin page: dreamfox-helpspot...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 5.8.1
  • First release: Mar 31, 2020
  • Latest release: Apr 4, 2020
  • Number of updates: 10
  • Update frequency: every 0.4 days
  • Top authors: dreamfox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 239 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼136.82ms] 75% from 4 tests

A check of server-side resources used by Dreamfoxmedia Helpspot live lookup
Please fix the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 2,345.93ms on /wp-admin/options-general.php?page=helpdesk)
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1838.45 ▲13.70
Dashboard /wp-admin3.13 ▲0.0761.05 ▲13.30
Posts /wp-admin/edit.php3.18 ▲0.0740.35 ▼0.52
Add New Post /wp-admin/post-new.php5.49 ▲0.05100.50 ▼558.73
Media Library /wp-admin/upload.php3.07 ▲0.0738.27 ▼1.33
helpspot live lookup /wp-admin/options-general.php?page=helpdesk3.062,345.93

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Dreamfoxmedia Helpspot live lookup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,710 ▲13915.93 ▲0.3610.28 ▲2.2548.67 ▼4.17
Dashboard /wp-admin2,999 ▲625.97 ▲0.03144.72 ▼12.68116.74 ▼5.28
Posts /wp-admin/edit.php2,746 ▲72.71 ▼0.0175.70 ▲0.44107.26 ▲10.67
Add New Post /wp-admin/post-new.php1,688 ▲518.67 ▲0.04378.92 ▼31.85115.74 ▲6.16
Media Library /wp-admin/upload.php1,814 ▲75.04 ▼0.01154.08 ▼1.18129.89 ▲4.69
helpspot live lookup /wp-admin/options-general.php?page=helpdesk2,2523.93104.23111.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/dreamfox-helpspot-live-lookup/dreamfoxmedia-helpspot-live-lookup.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=helpdesk
    • > Network (severe)
    wp-content/plugins/woocommerce-delivery-date-premium/css/addons-style.min.css?ver=2.1.23 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: dreamfoxmedia, plugin, live, dreamfox, lookup...

dreamfox-helpspot-live-lookup/dreamfoxmedia-helpspot-live-lookup.php 85% from 13 tests

"Dreamfoxmedia Helpspot live lookup" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dreamfox-helpspot-live-lookup.php" instead of "dreamfoxmedia-helpspot-live-lookup.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
No dangerous file extensions were detected689 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP17625559
CSS1241104
JavaScript17026

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/cross-flat.png2.93KB3.18KB0.00%
img/close-icon.png1.09KB1.00KB▼ 7.55%
img/help.png0.30KB0.32KB0.00%
img/dfmhsll1.png14.37KB8.72KB▼ 39.36%
img/dfmhsll2.png11.07KB7.10KB▼ 35.82%