83% lead-generation-website-analyzer-tool

Code Review | Lead Generation Website Analyzer Tool

WordPress plugin Lead Generation Website Analyzer Tool scored83%from 54 tests.

About plugin

  • Plugin page: lead-generation-w...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 21, 2018
  • Latest release: Sep 22, 2018
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: joe@jmjwebsitedesign.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Lead Generation Website Analyzer Tool
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.94 ▼3.21
Dashboard /wp-admin3.32 ▲0.0144.60 ▼3.31
Posts /wp-admin/edit.php3.37 ▲0.0144.30 ▼0.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.14 ▼7.55
Media Library /wp-admin/upload.php3.24 ▲0.0134.91 ▼0.99

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lead Generation Website Analyzer Tool
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.26 ▼1.262.08 ▲0.1240.87 ▼4.71
Dashboard /wp-admin2,222 ▲314.86 ▼1.0299.59 ▼9.3340.49 ▲1.56
Posts /wp-admin/edit.php2,105 ▲162.04 ▲0.0440.26 ▼0.3035.97 ▲0.70
Add New Post /wp-admin/post-new.php1,527 ▲817.43 ▼5.76621.70 ▼6.4552.67 ▼2.44
Media Library /wp-admin/upload.php1,404 ▲164.17 ▼0.0697.48 ▼8.1639.82 ▼3.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lead-generation-website-analyzer-tool/index.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention: You can look at the official readme.txt

lead-generation-website-analyzer-tool/index.php 85% from 13 tests

The main PHP file in "Lead Generation Website Analyzer Tool" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("lead-generation-website-analyzer-tool.php" instead of "index.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
There were no executable files found in this plugin269 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP16654177
CSS26568
JavaScript20024

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions14
▷ Named functions14100.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
No PNG files were detected