84% wp-gener8tor

Code Review | WP Gener8Tor - Chat with your site visitors on all platforms and messengers

WordPress plugin WP Gener8Tor - Chat with your site visitors on all platforms and messengers scored84%from 54 tests.

About plugin

  • Plugin page: wp-gener8tor
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Dec 24, 2019
  • Latest release: Feb 20, 2020
  • Number of updates: 9
  • Update frequency: every 6.7 days
  • Top authors: teknikforce (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /784 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.11MB] [CPU: ▼23.30ms] Passed 4 tests

Server-side resources used by WP Gener8Tor - Chat with your site visitors on all platforms and messengers
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.92 ▲0.4647.62 ▲8.46
Dashboard /wp-admin3.25 ▼0.0928.37 ▼30.70
Posts /wp-admin/edit.php3.33 ▼0.0231.26 ▼17.28
Add New Post /wp-admin/post-new.php5.53 ▼0.3663.74 ▼36.56
Media Library /wp-admin/upload.php3.26 ▲0.0425.51 ▼8.64

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 77 new files
Database: no new tables, 28 new options
New WordPress options
wpunichatbox-message_number
wpunichatbox-telephone_number
wpunichatbox-single_name
wpunichatbox-whatsapp_number
wpunichatbox-is_single
wpunichatbox-skype_botid
wpunichatbox-telegram_active
wpunichatbox-skype_active
wpunichatbox-message_active
wpunichatbox-email_active
...

Browser metrics Passed 4 tests

A check of browser resources used by WP Gener8Tor - Chat with your site visitors on all platforms and messengers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲15613.59 ▼0.795.84 ▲4.1442.85 ▼0.10
Dashboard /wp-admin2,225 ▲395.92 ▲0.9996.00 ▼16.2636.77 ▼4.92
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0235.54 ▼4.6833.47 ▼3.56
Add New Post /wp-admin/post-new.php1,558 ▲3623.04 ▼0.02673.99 ▲7.1353.15 ▲3.15
Media Library /wp-admin/upload.php1,410 ▲224.32 ▲0.0897.12 ▼14.6142.27 ▼22.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 28 options in the database
    • wpunichatbox-snapchat_id
    • wpunichatbox-telephone_active
    • wpunichatbox-email_id
    • wpunichatbox-snapchat_active
    • wpunichatbox-message_number
    • wpunichatbox-skype_active
    • widget_recent-comments
    • wpunichatbox-is_single
    • wpunichatbox-email_active
    • wpunichatbox-appear_after
    • ...

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-gener8tor/unichatbox/user_not_verified_bonus.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-gener8tor/unichat/chatboxes.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-gener8tor/unichat/unichatadminform.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-gener8tor/unichat/singlechat.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-gener8tor/unichatbox/user_not_verified.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in wp-gener8tor/assets to your readme.txt
You can look at the official readme.txt

wp-gener8tor/index.php 92% from 13 tests

The entry point to "WP Gener8Tor - Chat with your site visitors on all platforms and messengers" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-gener8tor.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
Good job! No executable or dangerous file extensions detected24,805 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
CSS81,4675213,546
JavaScript82,0391,7248,055
PHP124637532,916
SVG100288

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity27.71
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods71
▷ Static methods912.68%
▷ Public methods6997.18%
▷ Protected methods22.82%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.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
26 PNG files occupy 0.21MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
unichat/img/upload.png0.72KB0.72KB0.00%
unichat/img/bootmgr.png0.95KB0.70KB▼ 26.77%
unichat/img/icons/telephone.png2.13KB1.08KB▼ 49.45%
unichat/img/closechat.png57.49KB26.25KB▼ 54.33%
unichat/img/icons/telegram.png1.99KB1.04KB▼ 47.37%