68% visitlead

Code Review | VISITLEAD Live Chat and Realtime Monitoring

WordPress plugin VISITLEAD Live Chat and Realtime Monitoring scored68%from 54 tests.

About plugin

  • Plugin page: visitlead
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2016
  • Latest release: Apr 29, 2016
  • Number of updates: 15
  • Update frequency: every 22.9 days
  • Top authors: visitlead (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,644 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼1.25MB] [CPU: ▼45.04ms] Passed 4 tests

Analyzing server-side resources used by VISITLEAD Live Chat and Realtime Monitoring
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.73 ▼0.7311.87 ▼31.81
Dashboard /wp-admin2.76 ▼0.5416.63 ▼34.22
Posts /wp-admin/edit.php2.77 ▼0.5915.94 ▼32.23
Add New Post /wp-admin/post-new.php2.76 ▼3.1217.70 ▼81.91
Media Library /wp-admin/upload.php2.76 ▼0.4616.24 ▼17.17
Setup /wp-admin/options-general.php?page=visitlead2.7715.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
visitlead_cid
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for VISITLEAD Live Chat and Realtime Monitoring
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7614.40 ▲0.031.67 ▼0.0441.00 ▼11.96
Dashboard /wp-admin2,214 ▲265.79 ▼0.11104.58 ▼2.8440.03 ▼5.32
Posts /wp-admin/edit.php2,099 ▲102.11 ▲0.0938.12 ▲1.4631.77 ▼5.26
Add New Post /wp-admin/post-new.php1,543 ▲1423.24 ▲5.10667.27 ▲8.7954.74 ▼3.72
Media Library /wp-admin/upload.php1,393 ▲24.24 ▼0.01101.71 ▲0.7844.37 ▲1.73
Setup /wp-admin/options-general.php?page=visitlead8522.1525.8328.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method visitlead::init() should not be called statically
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • visitlead_cid
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=visitlead
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method visitlead::init() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=visitlead
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method visitlead::add_settings_page() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=visitlead
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method visitlead::register_settings() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=visitlead
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method visitlead::admin_notice() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=visitlead
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method visitlead::settings_page() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=visitlead
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=visitlead
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visitlead/visitlead.php:103
    • > PHP Notice
      Undefined variable: in_visitlead in wp-content/plugins/visitlead/visitlead.admin.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
You can look at the official readme.txt

visitlead/visitlead.php Passed 13 tests

This is the main PHP file of "VISITLEAD Live Chat and Realtime Monitoring" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
VISITLEAD PlugIn for Wordpress. Real-Time-Monitoring and Live Chat

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
Good job! No executable or dangerous file extensions detected112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2199112

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo.png3.38KB2.12KB▼ 37.29%
visitlead.png3.38KB2.12KB▼ 37.29%