10% html-landing-page

Code Review | HTML Landing Page

WordPress plugin HTML Landing Page scored10%from 54 tests.

About plugin

  • Plugin page: html-landing-page
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Dec 7, 2012
  • Latest release: Dec 7, 2012
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: fatkitty (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /8,191 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.96MB] [CPU: ▼54.80ms] Passed 4 tests

Server-side resources used by HTML Landing Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.55 ▼34.06
Dashboard /wp-admin2.05 ▼1.265.23 ▼50.04
Posts /wp-admin/edit.php2.05 ▼1.316.59 ▼43.66
Add New Post /wp-admin/post-new.php2.05 ▼3.846.06 ▼91.45
Media Library /wp-admin/upload.php2.05 ▼1.185.32 ▼32.06

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: 1 new table, 6 new options
New tables
landingpages
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for HTML Landing Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.28 ▼0.071.82 ▲0.0544.66 ▼2.55
Dashboard /wp-admin2,207 ▲305.55 ▼0.0987.13 ▼12.2640.40 ▼6.70
Posts /wp-admin/edit.php2,118 ▲181.99 ▼0.0435.60 ▼3.6533.36 ▼4.79
Add New Post /wp-admin/post-new.php1,541 ▲1022.98 ▼0.00669.39 ▼13.5964.74 ▲2.16
Media Library /wp-admin/upload.php1,421 ▲244.33 ▲0.0698.80 ▼19.2444.95 ▼1.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • Zombie tables were found after uninstall: 1 table
    • landingpages
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: cj, landing page, affiliate marketing, clickbank, seo...

html-landing-page/lp.php 85% from 13 tests

"HTML Landing Page" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("html-landing-page.php" instead of "lp.php")
  • Description: The description should be shorter than 140 characters (currently 294 characters long)

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
Good job! No executable or dangerous file extensions detected329 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2316323
CSS1106

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity4.33
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin