84% wiredminds-leadlab

Code Review | LeadLab by wiredminds

WordPress plugin LeadLab by wiredminds scored84%from 54 tests.

About plugin

  • Plugin page: wiredminds-leadlab
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.1-6.2
  • WordPress version: 6.3.1
  • First release: Jan 5, 2018
  • Latest release: Jun 29, 2023
  • Number of updates: 22
  • Update frequency: every 91.6 days
  • Top authors: wiredmindshelp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,647 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.32ms] Passed 4 tests

Server-side resources used by LeadLab by wiredminds
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.58 ▼3.04
Dashboard /wp-admin3.32 ▼0.0257.14 ▼6.30
Posts /wp-admin/edit.php3.38 ▲0.0247.72 ▼10.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.07 ▼29.45
Media Library /wp-admin/upload.php3.25 ▲0.0237.75 ▲5.15
LeadLab by wiredminds /wp-admin/options-general.php?page=wiredminds-leadlab/leadlab.php3.2033.95

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
wp_wm_custnum
db_upgraded
wp_wm_consent
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for LeadLab by wiredminds
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▲0.011.77 ▼0.0344.21 ▲0.78
Dashboard /wp-admin2,199 ▲225.61 ▼0.0494.79 ▲2.1743.71 ▲3.55
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0836.49 ▼0.4835.77 ▲1.90
Add New Post /wp-admin/post-new.php1,529 ▼823.41 ▲5.30668.59 ▲48.8545.45 ▼18.15
Media Library /wp-admin/upload.php1,407 ▲104.22 ▼0.0597.27 ▲0.6243.05 ▲0.49
LeadLab by wiredminds /wp-admin/options-general.php?page=wiredminds-leadlab/leadlab.php8222.0027.8829.39

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 8 options in the database
    • theysaidso_admin_options
    • wp_wm_custnum
    • wp_wm_consent
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wiredminds-leadlab/leadlab.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

wiredminds-leadlab/leadlab.php 92% from 13 tests

The principal PHP file in "LeadLab by wiredminds" v. 1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wiredminds-leadlab.php" instead of "leadlab.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
There were no executable files found in this plugin115 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13217115

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions3
▷ Named functions3100.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