80% skrumpt-lead-form

Code Review | Skrumpt Lead Form

WordPress plugin Skrumpt Lead Form scored 80% from 54 tests.

About plugin

  • Plugin page: skrumpt-lead-form
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Jun 16, 2020
  • Latest release: Oct 30, 2020
  • Number of updates: 43
  • Update frequency: every 3.2 days
  • Top authors: michaelpanco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 499 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.84MB] [CPU: ▼28.72ms] Passed 4 tests

An overview of server-side resources used by Skrumpt Lead Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.38 ▲1.34
Dashboard /wp-admin3.10 ▼0.2026.02 ▼24.91
Posts /wp-admin/edit.php3.10 ▼0.2524.67 ▼22.25
Add New Post /wp-admin/post-new.php3.10 ▼2.7828.39 ▼61.42
Media Library /wp-admin/upload.php3.10 ▼0.1324.97 ▼6.29

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

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

Browser metrics Passed 4 tests

Skrumpt Lead Form: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.26 ▼1.135.06 ▲3.2843.28 ▼1.87
Dashboard /wp-admin2,222 ▲344.88 ▼0.94106.70 ▼1.2041.81 ▼5.56
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0239.56 ▲1.0234.53 ▲2.04
Add New Post /wp-admin/post-new.php1,526 ▼817.78 ▼5.41635.22 ▼32.6147.70 ▼5.41
Media Library /wp-admin/upload.php1,407 ▲254.23 ▲0.0999.22 ▼7.3741.14 ▼2.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/skrumpt-lead-form/includes/slf-config-settings.php+21
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • skrumpt_api_key_status
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
3 plugin tags: skrumpt, skrumpt lead form, skrumpt lead

skrumpt-lead-form/skrumpt-lead-form.php 92% from 13 tests

The primary PHP file in "Skrumpt Lead Form" version 1.1.6 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 168 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,066 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP41416659
JavaScript1876318
CSS15189

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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 files were detected