89% wp-kongleads

Code Review | KongLeads

WordPress plugin KongLeads scored 89% from 54 tests.

About plugin

  • Plugin page: wp-kongleads
  • Plugin version: 2.1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 19, 2019
  • Latest release: Nov 15, 2021
  • Number of updates: 9
  • Update frequency: every 77.4 days
  • Top authors: kongleads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.11ms] Passed 4 tests

This is a short check of server-side resources used by KongLeads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.69 ▲0.45
Dashboard /wp-admin3.32 ▲0.0246.25 ▼2.47
Posts /wp-admin/edit.php3.37 ▲0.0144.29 ▼0.44
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.84 ▼5.97
Media Library /wp-admin/upload.php3.24 ▲0.0136.23 ▲1.72
KongLeads /wp-admin/options-general.php?page=wpkongleads3.2130.87

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by KongLeads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7514.44 ▲0.142.12 ▲0.3143.60 ▼1.11
Dashboard /wp-admin2,206 ▲145.81 ▲0.9095.81 ▼19.9539.05 ▲0.12
Posts /wp-admin/edit.php2,095 ▲32.01 ▼0.0134.67 ▼1.5732.79 ▼0.00
Add New Post /wp-admin/post-new.php1,352 ▼16716.39 ▼6.96549.35 ▼151.5328.95 ▼31.23
Media Library /wp-admin/upload.php1,397 ▲64.13 ▼0.07103.21 ▼0.0138.80 ▼4.77
KongLeads /wp-admin/options-general.php?page=wpkongleads9002.0426.4033.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: leads, emailing, marketing, marketin g france, automation...

wp-kongleads/wpkongleads.php 69% from 13 tests

Analyzing the main PHP file in "KongLeads" version 2.1.1
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-kongleads.php" instead of "wpkongleads.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected442 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP480173442

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected