99% onedigiflow-lead-capture

Code Review | OneDigiFlow - Lead Capture

WordPress plugin OneDigiFlow - Lead Capture scored 99% from 54 tests.

About plugin

  • Plugin page: onedigiflow-lead-...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.5
  • WordPress version: 5.8.1
  • First release: Sep 3, 2020
  • Latest release: Sep 9, 2020
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: onedigistore (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 122 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼140.68ms] Passed 4 tests

An overview of server-side resources used by OneDigiFlow - Lead Capture
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.0947.84 ▲20.74
Dashboard /wp-admin3.20 ▲0.1448.40 ▼0.24
Posts /wp-admin/edit.php3.31 ▲0.2048.33 ▲2.49
Add New Post /wp-admin/post-new.php5.56 ▲0.1290.62 ▼565.92
Media Library /wp-admin/upload.php3.14 ▲0.1435.29 ▲0.94
Add Lead /wp-admin/post-new.php?post_type=odflc-leads3.2450.59
All Leads /wp-admin/edit.php?post_type=odflc-leads3.1842.30
Settings /wp-admin/edit.php?post_type=odflc-leads&page=odflc-settings3.1332.00

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

OneDigiFlow - Lead Capture: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,747 ▲15115.86 ▼0.1610.19 ▲0.6450.41 ▼1.32
Dashboard /wp-admin3,007 ▲765.91 ▼0.01146.70 ▼5.55122.07 ▲8.23
Posts /wp-admin/edit.php2,779 ▲402.70 ▲0.0172.77 ▲2.5793.47 ▼4.97
Add New Post /wp-admin/post-new.php1,709 ▲2618.82 ▲0.02378.61 ▼4.13121.69 ▲2.70
Media Library /wp-admin/upload.php1,847 ▲1145.04 ▲0.03163.92 ▲13.14132.70 ▲9.60
Add Lead /wp-admin/post-new.php?post_type=odflc-leads3,0388.99225.35172.52
All Leads /wp-admin/edit.php?post_type=odflc-leads1,4722.6361.7175.66
Settings /wp-admin/edit.php?post_type=odflc-leads&page=odflc-settings1,2082.1161.8085.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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

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, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: lead, onedigiflow, form, lead capture

onedigiflow-lead-capture/onedigiflow-lead-capture.php 69% from 13 tests

The entry point to "OneDigiFlow - Lead Capture" version 0.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)

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 plugin940 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12213247832
JavaScript33732107
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity11.50
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity3.42
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/flags@2x.png170.28KB68.04KB▼ 60.04%
images/flags.png69.20KB23.42KB▼ 66.16%