90% leadboxer

Code Review | LeadBoxer

WordPress plugin LeadBoxer scored90%from 54 tests.

About plugin

  • Plugin page: leadboxer
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Aug 19, 2015
  • Latest release: Mar 11, 2018
  • Number of updates: 15
  • Update frequency: every 62.4 days
  • Top authors: LeadBoxer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,560 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.03MB] [CPU: ▼4.19ms] Passed 4 tests

This is a short check of server-side resources used by LeadBoxer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.12 ▲0.45
Dashboard /wp-admin3.33 ▲0.0350.38 ▼0.36
Posts /wp-admin/edit.php3.38 ▲0.0247.17 ▼4.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.13 ▼11.92
Media Library /wp-admin/upload.php3.25 ▲0.0238.83 ▲6.26
LeadBoxer /wp-admin/options-general.php?page=leadboxer3.2230.75

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
leadboxer_dataset

Browser metrics Passed 4 tests

An overview of browser requirements for LeadBoxer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8914.41 ▲0.0415.55 ▲13.4641.71 ▼2.32
Dashboard /wp-admin2,196 ▲165.51 ▼0.1284.49 ▼3.6938.72 ▼3.00
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0139.63 ▼2.6735.31 ▼6.18
Add New Post /wp-admin/post-new.php1,539 ▲1318.40 ▼4.51623.49 ▼14.1867.48 ▲9.47
Media Library /wp-admin/upload.php1,404 ▲14.19 ▼0.0397.41 ▼0.6142.60 ▼3.36
LeadBoxer /wp-admin/options-general.php?page=leadboxer8122.0224.4127.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: customer data, identification, lead, leads, capture...

leadboxer/leadboxer.php 92% from 13 tests

Analyzing the main PHP file in "LeadBoxer" version 1.2
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected119 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3463394
PO File15525

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods116.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin