90% leadinfo

Code Review | Leadinfo

WordPress plugin Leadinfo scored90%from 54 tests.

About plugin

  • Plugin page: leadinfo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: May 9, 2018
  • Latest release: Jun 14, 2023
  • Number of updates: 13
  • Update frequency: every 143.2 days
  • Top authors: leadinfo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

4,000+ active /10,729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Leadinfo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.75 ▼0.06
Dashboard /wp-admin3.33 ▲0.0255.06 ▲3.14
Posts /wp-admin/edit.php3.38 ▲0.0253.58 ▼1.98
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.09 ▼7.67
Media Library /wp-admin/upload.php3.25 ▲0.0241.42 ▲2.68
Leadinfo /wp-admin/options-general.php?page=leadinfo3.2135.54

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
leadinfo_id
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Leadinfo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.72 ▲0.442.16 ▲0.4546.53 ▲4.67
Dashboard /wp-admin2,196 ▲165.56 ▼0.1186.80 ▼3.8936.66 ▼8.99
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0535.93 ▼1.9134.91 ▼3.90
Add New Post /wp-admin/post-new.php1,529 ▲323.00 ▼0.61624.78 ▼56.3449.91 ▼7.11
Media Library /wp-admin/upload.php1,404 ▲14.20 ▼0.0298.29 ▼3.7942.69 ▼3.27
Leadinfo /wp-admin/options-general.php?page=leadinfo8192.0224.7626.46

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: b2b, leads, leadinfo, lead

leadinfo/leadinfo.php Passed 13 tests

The main PHP script in "Leadinfo" version 1.0 is automatically included on every request by WordPress
15 characters long description:
Leadinfo Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22523109

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin