89% web-whales-seoshop-sign-up-form

Code Review | Lightspeed eCommerce Sign Up Form by Web Whales

WordPress plugin Lightspeed eCommerce Sign Up Form by Web Whales scored89%from 54 tests.

About plugin

  • Plugin page: web-whales-seosho...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.5.2
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Jun 3, 2016
  • Number of updates: 9
  • Update frequency: every 33.1 days
  • Top authors: ronald_edelschaap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,057 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.45ms] Passed 4 tests

An overview of server-side resources used by Lightspeed eCommerce Sign Up Form by Web Whales
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.03 ▼3.62
Dashboard /wp-admin3.40 ▲0.0647.76 ▼11.25
Posts /wp-admin/edit.php3.51 ▲0.1643.96 ▼1.58
Add New Post /wp-admin/post-new.php5.98 ▲0.1081.40 ▼13.36
Media Library /wp-admin/upload.php3.32 ▲0.1035.90 ▲2.53
Lightspeed Affiliate Settings /wp-admin/options-general.php?page=ww-seoshop-sign-up3.3133.17

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
ww_seoshop_sign_up_sign_in_url
widget_theysaidso_widget
widget_recent-comments
ww_seoshop_sign_up_affiliate_url
widget_recent-posts
ww_seoshop_sign_up_plugin_version

Browser metrics Passed 4 tests

Checking browser requirements for Lightspeed eCommerce Sign Up Form by Web Whales
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.001.87 ▲0.1337.08 ▼6.50
Dashboard /wp-admin2,199 ▲225.61 ▼0.0693.29 ▼8.5041.55 ▼3.16
Posts /wp-admin/edit.php2,104 ▲11.94 ▼0.0335.38 ▼8.5834.80 ▼10.91
Add New Post /wp-admin/post-new.php1,529 ▲123.08 ▲0.03672.29 ▼10.8258.23 ▼3.74
Media Library /wp-admin/upload.php1,404 ▲104.20 ▲0.0498.62 ▼1.6843.16 ▼1.99
Lightspeed Affiliate Settings /wp-admin/options-general.php?page=ww-seoshop-sign-up1,0052.0424.4132.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • ww_seoshop_sign_up_affiliate_url
    • ww_seoshop_sign_up_plugin_version
    • ww_seoshop_sign_up_sign_in_url
    • theysaidso_admin_options
    • widget_theysaidso_widget

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 | 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
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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
6 plugin tags: affiliate, saas, lightspeed, ecommerce, webshop...

web-whales-seoshop-sign-up-form/webwhales-seoshop-sign-up-form.php 77% from 13 tests

The main file in "Lightspeed eCommerce Sign Up Form by Web Whales" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("web-whales-seoshop-sign-up-form.php" instead of "webwhales-seoshop-sign-up-form.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 361 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin923 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3149228553
CSS1305222
PO File1364293
JavaScript112055

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity100.00
▷ Minimum class complexity100.00
▷ Maximum class complexity100.00
Average method complexity4.09
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods32
▷ Static methods1546.88%
▷ Public methods2371.88%
▷ Protected methods00.00%
▷ Private methods928.12%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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 images were found in this plugin