79% gatorleads

Code Review | GatorLeads

WordPress plugin GatorLeads scored 79% from 54 tests.

About plugin

  • Plugin page: gatorleads
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2016
  • Latest release: Sep 22, 2023
  • Number of updates: 25
  • Update frequency: every 109.7 days
  • Top authors: Wow Analytics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 2,906 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.84ms] Passed 4 tests

An overview of server-side resources used by GatorLeads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0337.78 ▼2.29
Dashboard /wp-admin3.40 ▲0.0948.74 ▼4.23
Posts /wp-admin/edit.php3.51 ▲0.1545.80 ▼3.32
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.38 ▼0.52
Media Library /wp-admin/upload.php3.32 ▲0.0936.56 ▼1.53
GatorLeads /wp-admin/options-general.php?page=gatorleads3.2931.32

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
gatorleads_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for GatorLeads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5114.41 ▲0.061.73 ▼0.6446.61 ▼5.66
Dashboard /wp-admin2,207 ▲195.81 ▼0.0797.93 ▼7.8935.86 ▼7.63
Posts /wp-admin/edit.php2,096 ▲72.05 ▲0.0238.25 ▲1.9031.93 ▲2.73
Add New Post /wp-admin/post-new.php1,537 ▲223.35 ▼0.13622.90 ▼38.5452.97 ▼0.86
Media Library /wp-admin/upload.php1,392 ▲104.22 ▲0.0193.97 ▼18.8042.48 ▼11.90
GatorLeads /wp-admin/options-general.php?page=gatorleads9642.3655.2927.32

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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 take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/gatorleads/includes/ajax_functions.php
    • > /wp-content/plugins/gatorleads/admin.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gatorleads/gatorleads.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 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
2 plugin tags: leads, tracking

gatorleads/gatorleads.php Passed 13 tests

The primary PHP file in "GatorLeads" version 1.0.6 is used by WordPress to initiate all plugin functionality
65 characters long description:
Inserts the GatorLeads tracker into the footer of Wordpress pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected678 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8173125617
JavaScript18061

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.50
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected