62% landing-page-cat

Code Review | Landing Page Cat - Coming Soon Page, Maintenance Page & Squeeze Pages

WordPress plugin Landing Page Cat - Coming Soon Page, Maintenance Page & Squeeze Pages scored62%from 54 tests.

About plugin

  • Plugin page: landing-page-cat
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 25, 2017
  • Latest release: Aug 21, 2023
  • Number of updates: 79
  • Update frequency: every 30.3 days
  • Top authors: davidhme (82.28%)flippy101 (12.66%)RyanNovotny (7.59%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /51,708 total downloads

Benchmarks

Plugin footprint 65% 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.08MB] [CPU: ▲29.19ms] Passed 4 tests

Analyzing server-side resources used by Landing Page Cat - Coming Soon Page, Maintenance Page & Squeeze Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2183.25 ▲39.77
Dashboard /wp-admin3.39 ▲0.0883.50 ▲24.45
Posts /wp-admin/edit.php3.44 ▲0.0883.01 ▲29.03
Add New Post /wp-admin/post-new.php5.97 ▲0.08121.55 ▲23.51
Media Library /wp-admin/upload.php3.31 ▲0.0886.76 ▲46.36
Subscribers /wp-admin/edit.php?post_type=landingpage&page=fca_lpc_subscribers_page3.2875.42
Settings /wp-admin/edit.php?post_type=landingpage&page=fca_lpc_license_page3.2875.08
Add New /wp-admin/post-new.php?post_type=landingpage3.4493.25
All Landing Pages /wp-admin/edit.php?post_type=landingpage3.3577.04
Upgrade to Premium /wp-admin/edit.php?post_type=landingpage&page=landing-page-cat-upgrade3.1867.58

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 96 new files
Database: 1 new table, 9 new options
New tables
wp_fca_lpc_subscribers
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
fca_lpc_gdpr_compatible
can_compress_scripts
widget_theysaidso_widget
fca_lpc_license_status
fca_lpc_meta_version
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Landing Page Cat - Coming Soon Page, Maintenance Page & Squeeze Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.21 ▼1.371.73 ▼0.1543.63 ▼1.29
Dashboard /wp-admin2,239 ▲544.94 ▲0.04119.39 ▼24.2983.16 ▲27.97
Posts /wp-admin/edit.php2,235 ▲1462.03 ▲0.0439.27 ▼6.4133.32 ▼4.67
Add New Post /wp-admin/post-new.php1,708 ▲19420.48 ▲2.97709.29 ▲55.7956.54 ▼0.84
Media Library /wp-admin/upload.php1,439 ▲514.15 ▼0.03117.56 ▲6.3953.45 ▲6.78
Subscribers /wp-admin/edit.php?post_type=landingpage&page=fca_lpc_subscribers_page8732.0327.2528.40
Settings /wp-admin/edit.php?post_type=landingpage&page=fca_lpc_license_page1,1593.2973.4146.62
Add New /wp-admin/post-new.php?post_type=landingpage4,6128.44266.6695.08
All Landing Pages /wp-admin/edit.php?post_type=landingpage1,1061.9532.9830.20
Upgrade to Premium /wp-admin/edit.php?post_type=landingpage&page=landing-page-cat-upgrade1,78212.57572.21246.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_fca_lpc_subscribers
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • fca_lpc_license_status
    • fca_lpc_gdpr_compatible
    • fca_lpc_meta_version
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/landing-page-cat/languages/index.php
    • > /wp-content/plugins/landing-page-cat/landing-page-cat.php
  • 51× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant FCA_LPC_PLUGIN_DIR - assumed 'FCA_LPC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/landing-page-cat/includes/editor/editor.php on line 15
    • > PHP Warning
      Use of undefined constant FCA_LPC_PLUGIN_DIR - assumed 'FCA_LPC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/landing-page-cat/includes/editor/editor.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/landing-page-cat/includes/providers/drip.php:122
    • > PHP Warning
      include_once(FCA_LPC_PLUGIN_DIR/includes/providers/aweber.php): failed to open stream: No such file or directory in wp-content/plugins/landing-page-cat/includes/editor/editor.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/landing-page-cat/includes/providers/madmimi.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/landing-page-cat/includes/providers/campaignmonitor.php:111
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/landing-page-cat/includes/providers/aweber_api/aweber_entry.php:3
    • > PHP Warning
      Use of undefined constant FCA_LPC_PLUGIN_DIR - assumed 'FCA_LPC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/landing-page-cat/includes/editor/editor.php on line 8
    • > PHP Warning
      include_once(): Failed opening 'FCA_LPC_PLUGIN_DIR/includes/providers/convertkit.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/landing-page-cat/includes/editor/editor.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/landing-page-cat/includes/providers/activecampaign.php:122

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=landingpage
    • > Deprecation (warning) in unknown
    /wp-content/plugins/landing-page-cat/includes/wysi/wysihtml.min.js?ver=1.7.2 9 Listener added for a synchronous 'DOMNodeRemoved' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (A landing page built with Landing Page Cat.), #2 (Another example of a landing page built with Landing Page Cat.), #3 (Another example of a landing page built with Landing Page Cat.), #4 (Another example of a landing page built with Landing Page Cat.)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

landing-page-cat/landing-page-cat.php Passed 13 tests

The principal PHP file in "Landing Page Cat - Coming Soon Page, Maintenance Page & Squeeze Pages" v. 1.7.2 is loaded by WordPress automatically on each request
44 characters long description:
Provides an easy way to create landing pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8,150 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
PHP491,6333,6165,997
JavaScript13196971,006
CSS139214769
Markdown51400341
JSON11037

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.67
▷ Minimum class complexity1.00
▷ Maximum class complexity114.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces2
Traits0
Classes44
▷ Abstract classes00.00%
▷ Concrete classes44100.00%
▷ Final classes00.00%
Methods307
▷ Static methods41.30%
▷ Public methods28392.18%
▷ Protected methods216.84%
▷ Private methods30.98%
Functions118
▷ Named functions118100.00%
▷ Anonymous functions00.00%
Constants42
▷ Global constants42100.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
7 PNG files occupy 0.29MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/icon-128x128.png21.67KB6.36KB▼ 70.66%
icons/icon.png0.73KB0.60KB▼ 17.38%
screenshot-1.png69.49KB75.12KB0.00%
screenshot-2.png59.94KB64.99KB0.00%
screenshot-4.png15.19KB16.24KB0.00%