83% lead-forensics-roi

Code Review | Lead Forensics

WordPress plugin Lead Forensics scored83%from 54 tests.

About plugin

  • Plugin page: lead-forensics-roi
  • Plugin version: 3.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2015
  • Latest release: Jun 22, 2023
  • Number of updates: 38
  • Update frequency: every 74.4 days
  • Top authors: Lead Forensics (89.47%)leadforensicspluginsupport (13.16%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10,000+ active /75,281 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.35ms] Passed 4 tests

Analyzing server-side resources used by Lead Forensics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.97 ▲0.72
Dashboard /wp-admin3.34 ▲0.0447.09 ▼2.69
Posts /wp-admin/edit.php3.39 ▲0.0343.80 ▼7.45
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.94 ▼3.96
Media Library /wp-admin/upload.php3.27 ▲0.0334.56 ▲2.20
Lead Forensics /wp-admin/options-general.php?page=lfr_settings3.2336.58

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: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lead Forensics
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.48 ▲0.111.85 ▲0.0643.98 ▼4.17
Dashboard /wp-admin2,210 ▲195.86 ▲0.99112.48 ▼3.6342.14 ▼1.14
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0135.17 ▼1.9535.67 ▼0.56
Add New Post /wp-admin/post-new.php1,545 ▲618.55 ▼4.58626.07 ▼46.4460.50 ▲9.91
Media Library /wp-admin/upload.php1,395 ▲134.20 ▲0.0596.03 ▼2.3640.53 ▼2.08
Lead Forensics /wp-admin/options-general.php?page=lfr_settings1,40511.85297.4874.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lead-forensics-roi/lead-forensics.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 87% 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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 25 tag instead of maximum 10
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === lead-forensics-roi === )
Please take inspiration from this readme.txt

lead-forensics-roi/lead-forensics.php 85% from 13 tests

The main PHP script in "Lead Forensics" version 3.3.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 284 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lead-forensics-roi.php" instead of "lead-forensics.php")

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
Success! There were no dangerous files found in this plugin138 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13428134
JavaScript1314

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin