67% wp-landing-page

Code Review | WP Landing Page

WordPress plugin WP Landing Page scored67%from 54 tests.

About plugin

  • Plugin page: wp-landing-page
  • Plugin version: 0.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.5-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2015
  • Latest release: Nov 3, 2015
  • Number of updates: 36
  • Update frequency: every 1.2 days
  • Top authors: xbenx (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

30+ active /6,952 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.51ms] Passed 4 tests

This is a short check of server-side resources used by WP Landing Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.89 ▼5.41
Dashboard /wp-admin3.34 ▲0.0447.27 ▼0.36
Posts /wp-admin/edit.php3.39 ▲0.0449.76 ▲3.43
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.10 ▼0.65
Media Library /wp-admin/upload.php3.26 ▲0.0434.18 ▲0.38
Access /wp-admin/edit.php?post_type=wplp_landingpage&page=access3.2430.61
All Landing Pages /wp-admin/edit.php?post_type=wplp_landingpage3.3133.46
Add New /wp-admin/post-new.php?post_type=wplp_landingpage3.3037.65

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 306 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Landing Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12013.80 ▼0.581.69 ▼0.4039.45 ▼9.94
Dashboard /wp-admin2,256 ▲685.96 ▼0.01108.20 ▼9.1940.42 ▼3.86
Posts /wp-admin/edit.php2,144 ▲582.31 ▲0.3243.17 ▲7.3634.58 ▲2.20
Add New Post /wp-admin/post-new.php1,558 ▲4423.19 ▲5.76577.87 ▼102.2832.21 ▼12.92
Media Library /wp-admin/upload.php1,438 ▲474.40 ▲0.2095.07 ▲1.6440.53 ▼0.19
Access /wp-admin/edit.php?post_type=wplp_landingpage&page=access8521.9426.8935.66
All Landing Pages /wp-admin/edit.php?post_type=wplp_landingpage1,1112.2233.8829.37
Add New /wp-admin/post-new.php?post_type=wplp_landingpage2,4523.9897.6877.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-landing-page/lib/plupload/examples/jquery/s3.php
    • > /wp-content/plugins/wp-landing-page/lib/plupload/examples/upload.php
    • > /wp-content/plugins/wp-landing-page/lib/plupload/examples/dump.php
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-landing-page/wplandingpage.php on line 28
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-landing-page/wplandingpage.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-landing-page/templates/base/single-landingpage.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wplp_editable_text() in wp-content/plugins/wp-landing-page/templates/free1/index.php:6
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-landing-page/wplandingpage.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-landing-page/includes/custom-post-type.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-landing-page/includes/access.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-landing-page/includes/colors-and-css.php:87
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-landing-page/includes/default-templates.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-landing-page/includes/default-templates.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Add a description for screenshot #4 in wp-landing-page/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 30 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-landing-page/wplandingpage.php 77% from 13 tests

This is the main PHP file of "WP Landing Page" version 0.9.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-landing-page.php" instead of "wplandingpage.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
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Please fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .xap - Silverlight Application Package in Microsoft Silverlight
      • wp-content/plugins/wp-landing-page/lib/plupload/js/Moxie.xap
33,435 lines of code in 278 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1576,9527,64224,827
Sass771,2431,6015,752
PHP19228141795
Markdown52770589
CSS710822547
HTML510928483
SVG100288
JSON700154

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/plupload/js/jquery.plupload.queue/img/buttons-disabled.png1.26KB1.02KB▼ 19.20%
lib/plupload/js/jquery.plupload.queue/img/transp50.png0.39KB0.11KB▼ 72.18%
lib/plupload/js/jquery.plupload.queue/img/buttons.png1.41KB1.15KB▼ 18.00%
lib/plupload/js/jquery.ui.plupload/img/plupload.png6.44KB2.99KB▼ 53.58%
images/smartphone.png65.45KB68.88KB0.00%