78% prodalet

Code Review | Всплывающие окна, обратный звонок, онлайн чат, виджеты сбора лидов, виджет обратной связи - ProdaLet WordPress Plugin

WordPress plugin Всплывающие окна, обратный звонок, онлайн чат, виджеты сбора лидов, виджет обратной связи - ProdaLet WordPress Plugin scored78%from 54 tests.

About plugin

  • Plugin page: prodalet
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 8, 2020
  • Latest release: May 11, 2021
  • Number of updates: 8
  • Update frequency: every 23.4 days
  • Top authors: prodalet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,731 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.94ms] Passed 4 tests

Analyzing server-side resources used by Всплывающие окна, обратный звонок, онлайн чат, виджеты сбора лидов, виджет обратной связи - ProdaLet WordPress Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0722.78 ▼17.66
Dashboard /wp-admin3.32 ▲0.0244.02 ▼4.95
Posts /wp-admin/edit.php3.38 ▲0.0248.56 ▲4.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.73 ▼18.51
Media Library /wp-admin/upload.php3.25 ▲0.0235.50 ▲1.37
Prodalet /wp-admin/options-general.php?page=prodalet/setting.php3.1931.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Всплывающие окна, обратный звонок, онлайн чат, виджеты сбора лидов, виджет обратной связи - ProdaLet WordPress Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,970 ▲23515.07 ▲0.7927.46 ▲25.7141.52 ▼9.06
Dashboard /wp-admin2,210 ▲225.88 ▲0.07105.42 ▼14.1940.20 ▼5.23
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0239.35 ▲2.0334.37 ▼0.46
Add New Post /wp-admin/post-new.php1,546 ▲418.60 ▲0.46613.08 ▼11.9053.75 ▼6.73
Media Library /wp-admin/upload.php1,392 ▲104.17 ▼0.0495.47 ▼2.1341.24 ▼1.65
Prodalet /wp-admin/options-general.php?page=prodalet/setting.php8872.1723.4030.81

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=prodalet/setting.php
    • > Notice in wp-content/plugins/prodalet/admin_panel.php+178
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=prodalet/setting.php
    • > Notice in wp-content/plugins/prodalet/admin_panel.php+184
    Undefined variable: val

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/prodalet/prodalet.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7, #8, #9 in prodalet/assets to your readme.txt
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

prodalet/prodalet.php Passed 13 tests

The main PHP script in "Всплывающие окна, обратный звонок, онлайн чат, виджеты сбора лидов, виджет обратной связи - ProdaLet WordPress Plugin" version 1.2 is automatically included on every request by WordPress
87 characters long description:
Подключение сервиса повышения конверсии ProdaLet.ru

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 detected358 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26345292
Markdown120066

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity21.00
▷ Minimum class complexity13.00
▷ Maximum class complexity29.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin