79% flirty-leads

Code Review | Flirty Leads

WordPress plugin Flirty Leads scored79%from 54 tests.

About plugin

  • Plugin page: flirty-leads
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: Jun 7, 2016
  • Latest release: Aug 11, 2020
  • Number of updates: 65
  • Update frequency: every 23.5 days
  • Top authors: sageshilling (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,496 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
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼6.68ms] Passed 4 tests

This is a short check of server-side resources used by Flirty Leads
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1438.43 ▼2.60
Dashboard /wp-admin3.44 ▲0.0945.30 ▼14.23
Posts /wp-admin/edit.php3.55 ▲0.2048.89 ▼1.31
Add New Post /wp-admin/post-new.php6.02 ▲0.1390.03 ▼8.56
Media Library /wp-admin/upload.php3.36 ▲0.1337.90 ▲5.06

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Flirty Leads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲14013.60 ▼0.775.69 ▲3.6136.85 ▼7.71
Dashboard /wp-admin2,209 ▲184.85 ▼0.02105.88 ▼3.4938.42 ▼7.01
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0840.59 ▲1.3436.93 ▲0.01
Add New Post /wp-admin/post-new.php1,514 ▼1417.54 ▼5.46660.41 ▼34.5552.75 ▼24.28
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0295.98 ▼16.3740.26 ▼8.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/flirty-leads/uninstall.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flirty-leads/flirty-leads.php:45

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: email campaigns, direct dashboard media editing, call to action, lead capture, mailchimp integration

flirty-leads/flirty-leads.php Passed 13 tests

This is the main PHP file of "Flirty Leads" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
98 characters long description:
Flirty Leads lets your site visitors respond your site images. Generate client lists, gain leads.

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 detected575 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP293136504
JavaScript1241341
CSS116830

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin