78% kloudymail-lead-generation

Code Review | Kloudymail Lead Generation

WordPress plugin Kloudymail Lead Generation scored78%from 54 tests.

About plugin

  • Plugin page: kloudymail-lead-g...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 19, 2018
  • Latest release: Nov 22, 2018
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: wekloud (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 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
Installer ran successfully

Server metrics [RAM: ▲0.44MB] [CPU: ▼4.02ms] Passed 4 tests

A check of server-side resources used by Kloudymail Lead Generation
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4741.37 ▲1.04
Dashboard /wp-admin3.77 ▲0.4747.67 ▲0.59
Posts /wp-admin/edit.php3.82 ▲0.4747.47 ▼0.84
Add New Post /wp-admin/post-new.php6.29 ▲0.4081.73 ▼16.85
Media Library /wp-admin/upload.php3.63 ▲0.4037.69 ▲3.62
Export /wp-admin/admin.php?page=km_export3.6034.79
Settings /wp-admin/admin.php?page=km_menu3.6031.48
Widget /wp-admin/admin.php?page=km_widget3.6035.24

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: 2 new tables, 8 new options
New tables
wp_kloudymail_shortcode_widgets
wp_kloudymail_subscribers
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
kmlg_db_version
widget_recent-posts
widget_recent-comments
widget_kloudymail
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Kloudymail Lead Generation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,978 ▲24314.51 ▼0.2716.27 ▲14.2539.53 ▼10.30
Dashboard /wp-admin2,273 ▲824.85 ▼1.06100.85 ▼8.7636.99 ▼7.56
Posts /wp-admin/edit.php2,154 ▲682.01 ▼0.0136.84 ▲0.9833.42 ▼1.82
Add New Post /wp-admin/post-new.php1,558 ▲2523.56 ▲0.45662.81 ▲24.0871.52 ▲8.12
Media Library /wp-admin/upload.php1,452 ▲644.23 ▲0.0398.05 ▲1.1641.49 ▼3.43
Export /wp-admin/admin.php?page=km_export8122.0424.7223.18
Settings /wp-admin/admin.php?page=km_menu9081.8526.2128.12
Widget /wp-admin/admin.php?page=km_widget8982.0325.0726.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • kmlg_db_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kloudymail-lead-generation/admin/menu.php:2
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/kloudymail-lead-generation/admin/form.php:10
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/kloudymail-lead-generation/kloudymail.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kloudymail-lead-generation/admin/ajax.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_widget' not found in wp-content/plugins/kloudymail-lead-generation/widgets.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kloudymail-lead-generation/public/ajax.php:2
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/kloudymail-lead-generation/kloudymail.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'WP_widget' not found in wp-content/plugins/kloudymail-lead-generation/widgets.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=km_widget
    • > Network (severe)
    wp-content/plugins/kloudymail-lead-generation/admin/km_style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #2 (Admin menu;)
The official readme.txt might help

kloudymail-lead-generation/kloudymail.php 85% from 13 tests

The main file in "Kloudymail Lead Generation" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kloudymail-lead-generation.php" instead of "kloudymail.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,735 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP83286141,913
HTML200508
JavaScript1241220
CSS27394

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.30
Average class complexity35.50
▷ Minimum class complexity4.00
▷ Maximum class complexity124.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods107
▷ Static methods00.00%
▷ Public methods8680.37%
▷ Protected methods2119.63%
▷ Private methods00.00%
Functions31
▷ Named functions3096.77%
▷ Anonymous functions13.23%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin