84% lm-cf7-lead-manager-addon

Code Review | lm CF7 lead manager Addon

WordPress plugin lm CF7 lead manager Addon scored84%from 54 tests.

About plugin

  • Plugin page: lm-cf7-lead-manag...
  • Plugin version: 0.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.10-4.2.10
  • WordPress version: 6.3.1
  • First release: Oct 5, 2016
  • Latest release: Oct 5, 2016
  • Number of updates: 6
  • Update frequency: every 2.2 days
  • Top authors: leadmanagerdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /851 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.40ms] Passed 4 tests

Analyzing server-side resources used by lm CF7 lead manager Addon
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.43 ▼5.26
Dashboard /wp-admin3.35 ▲0.0550.89 ▼2.79
Posts /wp-admin/edit.php3.40 ▲0.0548.82 ▼2.64
Add New Post /wp-admin/post-new.php5.93 ▲0.0586.39 ▼6.91
Media Library /wp-admin/upload.php3.27 ▲0.0540.26 ▲1.15

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

lm CF7 lead manager Addon: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.411.85 ▲0.1743.41 ▼0.66
Dashboard /wp-admin2,192 ▲125.56 ▼0.1291.84 ▲1.0841.19 ▲2.39
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0934.72 ▼1.9734.65 ▼2.40
Add New Post /wp-admin/post-new.php1,526 ▼923.29 ▲4.89677.77 ▼23.8859.30 ▼10.18
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0394.42 ▼12.6742.14 ▼3.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | 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
The following issues need your attention
  • 2× 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/lm-cf7-lead-manager-addon/init.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lm-cf7-lead-manager-addon/di_wpcf7_lm_module/init.php:13

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 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:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === lm-cf7-lead-manager-addon === )
The official readme.txt might help

lm-cf7-lead-manager-addon/init.php 92% from 13 tests

"lm CF7 lead manager Addon" version 0.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lm-cf7-lead-manager-addon.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected194 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25118194

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected