84% wp-live-support

Code Review | WP Live Support

WordPress plugin WP Live Support scored 84% from 54 tests.

About plugin

  • Plugin page: wp-live-support
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-5.3
  • WordPress version: 6.3.1
  • First release: Jun 25, 2014
  • Latest release: Dec 6, 2019
  • Number of updates: 17
  • Update frequency: every 117.2 days
  • Top authors: djerba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,753 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by WP Live Support
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.14 ▼7.24
Dashboard /wp-admin3.32 ▲0.0247.11 ▼1.61
Posts /wp-admin/edit.php3.43 ▲0.0847.38 ▲0.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0494.09 ▲0.87
Media Library /wp-admin/upload.php3.24 ▲0.0238.65 ▲5.47

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Live Support
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲3913.29 ▼1.081.64 ▼0.4137.04 ▼7.06
Dashboard /wp-admin2,213 ▲255.79 ▼0.12100.58 ▼12.2736.81 ▼14.92
Posts /wp-admin/edit.php2,099 ▲102.01 ▲0.0039.22 ▲2.5536.54 ▼0.28
Add New Post /wp-admin/post-new.php1,542 ▲2823.33 ▲5.72659.48 ▼20.2953.58 ▲0.48
Media Library /wp-admin/upload.php1,401 ▲104.27 ▼0.0398.29 ▼0.1645.25 ▲5.45

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-live-support/core/wordpress-live-support.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Wordpress Live Support) image required
The official readme.txt might help

wp-live-support/index.php 92% from 13 tests

Analyzing the main PHP file in "WP Live Support" version 1.4
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-live-support.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin198 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File4104212154
PHP233044

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
Screenshot_1.png89.59KB39.96KB▼ 55.40%