78% want-flirty-leads

Code Review | Want Flirty Leads

WordPress plugin Want Flirty Leads scored78%from 54 tests.

About plugin

  • Plugin page: want-flirty-leads
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Nov 3, 2017
  • Latest release: Nov 6, 2017
  • Number of updates: 5
  • Update frequency: every 2.0 days
  • Top authors: sageshilling (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /612 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Want Flirty Leads
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.74 ▼2.42
Dashboard /wp-admin3.32 ▲0.0245.18 ▼4.59
Posts /wp-admin/edit.php3.37 ▲0.0247.01 ▼1.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.28 ▲1.18
Media Library /wp-admin/upload.php3.24 ▲0.0231.69 ▼2.44

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Want Flirty Leads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲14013.59 ▼0.798.43 ▲6.6840.93 ▼4.18
Dashboard /wp-admin2,206 ▲204.80 ▼0.15107.15 ▼3.8441.93 ▼6.27
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0640.45 ▲4.0535.62 ▲1.19
Add New Post /wp-admin/post-new.php1,519 ▼1423.03 ▼0.02591.20 ▼79.4558.55 ▼6.17
Media Library /wp-admin/upload.php1,391 ▲34.21 ▲0.05101.03 ▼10.5342.15 ▼0.79

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/want-flirty-leads/uninstall.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/want-flirty-leads/want-flirty-leads.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

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

The primary PHP file in "Want Flirty Leads" version 1.0 is used by WordPress to initiate all plugin functionality
103 characters long description:
Tags: lead capture, call to action, email campaigns, direct dashboard media editing, image lead capture

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin503 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2658153432
JavaScript1241341
CSS116830

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued 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%
Functions44
▷ Named functions44100.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
There were not PNG files found in your plugin