10% easy-leads-free

Code Review | Easy Leads Free

WordPress plugin Easy Leads Free scored10%from 54 tests.

About plugin

  • Plugin page: easy-leads-free
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2020
  • Latest release: Oct 28, 2020
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: butteff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,828 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/easy-leads-free/easyleads.php+60
    Undefined variable: table_three

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.49ms] Passed 4 tests

A check of server-side resources used by Easy Leads Free
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.17 ▲0.73
Dashboard /wp-admin3.34 ▼0.0141.13 ▼18.42
Posts /wp-admin/edit.php3.39 ▲0.0343.51 ▼1.98
Add New Post /wp-admin/post-new.php5.92 ▲0.0377.91 ▼22.27
Media Library /wp-admin/upload.php3.26 ▲0.0334.74 ▲3.48

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: 2 new tables, 6 new options
New tables
wp_easyleads_mailtext
wp_easyleads
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Easy Leads Free
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.28 ▼0.081.76 ▲0.0241.03 ▼4.72
Dashboard /wp-admin2,214 ▲375.67 ▲0.0183.48 ▼3.2038.31 ▼2.73
Posts /wp-admin/edit.php2,119 ▲192.01 ▼0.0134.20 ▼3.2533.11 ▼0.20
Add New Post /wp-admin/post-new.php1,541 ▲1522.97 ▼0.66671.56 ▼30.1065.21 ▲10.67
Media Library /wp-admin/upload.php1,410 ▲134.22 ▲0.0097.32 ▲1.0243.45 ▼2.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_easyleads_mailtext
    • wp_easyleads
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-leads-free/1.0/views/admin_page.php
    • > /wp-content/plugins/easy-leads-free/1.0/views/style.php
    • > /wp-content/plugins/easy-leads-free/views/style.php
    • > /wp-content/plugins/easy-leads-free/views/admin_page.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/easy-leads-free/views/admin_page_table.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/easy-leads-free/1.0/views/admin_page_mail.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-leads-free/easyleads.php:63
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/easy-leads-free/views/admin_page_mail.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/easy-leads-free/1.0/views/admin_page_table.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-leads-free/1.0/easyleads.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: contacts, shortcode, leads, mails, form

easy-leads-free/easyleads.php 85% from 13 tests

This is the main PHP file of "Easy Leads Free" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-leads-free.php" instead of "easyleads.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin335 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP56544335

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions18
▷ Named functions18100.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
No PNG images were found in this plugin