83% wiseagentleadform

Code Review | Wise Agent Lead Forms

WordPress plugin Wise Agent Lead Forms scored83%from 54 tests.

About plugin

  • Plugin page: wiseagentleadform
  • Plugin version: 3.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 29, 2016
  • Latest release: Oct 16, 2023
  • Number of updates: 30
  • Update frequency: every 87.8 days
  • Top authors: wiseagentwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,217 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼5.77ms] Passed 4 tests

This is a short check of server-side resources used by Wise Agent Lead Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2141.08 ▲0.68
Dashboard /wp-admin3.52 ▲0.1750.16 ▼8.41
Posts /wp-admin/edit.php3.63 ▲0.2749.93 ▲5.78
Add New Post /wp-admin/post-new.php6.12 ▲0.2380.46 ▼21.12
Media Library /wp-admin/upload.php3.44 ▲0.2138.95 ▲9.80
Settings /wp-admin/admin.php?page=wiseagent-settings3.3931.88
Capture Forms /wp-admin/admin.php?page=wiseagent-captureforms3.4229.64

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Wise Agent Lead Forms
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲7314.20 ▼0.171.99 ▼0.0943.97 ▲0.17
Dashboard /wp-admin2,221 ▲505.56 ▲0.0292.88 ▲9.0981.99 ▲46.00
Posts /wp-admin/edit.php2,132 ▲291.99 ▲0.0234.24 ▼4.4233.36 ▼5.85
Add New Post /wp-admin/post-new.php1,701 ▲16422.45 ▲3.98708.99 ▲103.6056.60 ▼0.59
Media Library /wp-admin/upload.php1,423 ▲204.21 ▲0.0196.21 ▼4.9667.86 ▲25.07
Settings /wp-admin/admin.php?page=wiseagent-settings8121.9923.4027.02
Capture Forms /wp-admin/admin.php?page=wiseagent-captureforms7972.0024.5225.15

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/wiseagentleadform/wa_widget.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Requires at least: Version not formatted correctly
  • Tested up to: Version not formatted correctly
You can look at the official readme.txt

wiseagentleadform/wiseagent.php 92% from 13 tests

Analyzing the main PHP file in "Wise Agent Lead Forms" version 3.2
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wiseagentleadform.php" instead of "wiseagent.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,522 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP42203301,344
CSS113091
JavaScript28887

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity37.25
▷ Minimum class complexity5.00
▷ Maximum class complexity71.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods65
▷ Static methods00.00%
▷ Public methods5483.08%
▷ Protected methods46.15%
▷ Private methods710.77%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo_welcome.png3.17KB0.83KB▼ 73.76%