72% basic-landing-pages-wizard

Code Review | Basic Landing Pages Wizard

WordPress plugin Basic Landing Pages Wizard scored 72% from 54 tests.

About plugin

  • Plugin page: basic-landing-pag...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 5.9.2
  • First release: Aug 3, 2020
  • Latest release: Aug 22, 2020
  • Number of updates: 19
  • Update frequency: every 1.3 days
  • Top authors: proffibit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 249 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.60MB] [CPU: ▼276.92ms] Passed 4 tests

This is a short check of server-side resources used by Basic Landing Pages Wizard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.65 ▲1.1474.40 ▲21.05
Dashboard /wp-admin5.17 ▲1.7752.55 ▲11.60
Posts /wp-admin/edit.php5.40 ▲1.7757.90 ▲18.93
Add New Post /wp-admin/post-new.php8.68 ▲1.71115.78 ▼1,149.56
Media Library /wp-admin/upload.php5.12 ▲1.8343.36 ▲11.37
Basic Landing Pages /wp-admin/edit.php?post_type=blpw-landing-page5.1557.78
Add New /wp-admin/post-new.php?post_type=blpw-landing-page5.3259.36

Server storage [IO: ▲12.36MB] [DB: ▲1.73MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 1,030 new files
Database: 4 new tables, 1 new option
New tables
wp_lpw_states
wp_lpw_cities
wp_lpw_counties
wp_lpw_countries
New WordPress options
blpw_country

Browser metrics Passed 4 tests

Checking browser requirements for Basic Landing Pages Wizard
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,921 ▲16716.28 ▲0.646.27 ▲0.258.37 ▲5.89
Dashboard /wp-admin3,000 ▲1466.73 ▲0.42172.02 ▲6.90179.38 ▲11.16
Posts /wp-admin/edit.php2,799 ▲1053.18 ▼0.0779.94 ▲11.15239.33 ▲78.88
Add New Post /wp-admin/post-new.php1,754 ▲8222.97 ▲2.21469.08 ▲5.32233.39 ▲56.42
Media Library /wp-admin/upload.php1,814 ▲1195.91 ▲0.38134.28 ▼24.51195.83 ▲9.10
Basic Landing Pages /wp-admin/edit.php?post_type=blpw-landing-page1,4763.38110.13142.06
Add New /wp-admin/post-new.php?post_type=blpw-landing-page1,9714.31116.11142.89

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 25% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 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
Please fix the following items
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/basic-landing-pages-wizard/vendor/symfony/translation/Resources/bin/translation-status.php
    • > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/simple-bootstrap-4.blade.php
    • > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/default.blade.php
    • > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/simple-default.blade.php
    • > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/semantic-ui.blade.php
    • > /wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/pagination/resources/views/bootstrap-4.blade.php
  • 308× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WeDevs\\ORM\\Eloquent\\Model' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/tareq1988/wp-eloquent/src/WP/Post.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Extractor\\AbstractFileExtractor' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/symfony/translation/Extractor/PhpExtractor.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Database\\Eloquent\\Relations\\HasOneOrMany' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/database/Eloquent/Relations/HasMany.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/support/Facades/View.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Database\\Schema\\Builder' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/database/Schema/PostgresBuilder.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/basic-landing-pages-wizard/admin/plugins/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
    • > PHP Fatal error
      Uncaught Error: Interface 'Illuminate\\Contracts\\Filesystem\\Filesystem' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/illuminate/contracts/Filesystem/Cloud.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/kylekatarnls/update-helper/src/UpdateHelper/ComposerPlugin.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/symfony/translation/Dumper/PoFileDumper.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/basic-landing-pages-wizard/vendor/symfony/translation/Dumper/QtFileDumper.php:21

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=blpw-landing-page
    • > Network (severe)
    wp-admin/edit.php?post_type=blpw-landing-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/post-new.php?post_type=blpw-landing-page
    • > Javascript (severe) in unknown
    /wp-admin/post-new.php?post_type=blpw-landing-page 0:0 Uncaught SyntaxError: Unexpected token < in JSON at position 0

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: content, landing pages, seo, wizard

basic-landing-pages-wizard/basic-landing-pages-wizard.php 92% from 13 tests

Analyzing the main PHP file in "Basic Landing Pages Wizard" version 1.0.0
You should first fix the following items:
  • Git Repository: Please remove the Git repository from this plugin

Code Analysis 3% 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 make sure to remedy the following
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .bat - Batch File in Windows
      • wp-content/plugins/basic-landing-pages-wizard/vendor/nesbot/carbon/bin/upgrade-carbon.bat
354,510 lines of code in 823 files:
LanguageFilesBlank linesComment linesLines of code
JSON2200252,191
PHP59411,52035,72645,174
PO File12714,32318,50232,368
SVG30129,299
CSS182791,2245,323
XSD499764,991
JavaScript129387083,543
Markdown1439601,147
XML1784340
Blade51119112
Qt Linguist10010
YAML4007
DOS Batch1004
INI1001

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 157)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity9.72
▷ Minimum class complexity1.00
▷ Maximum class complexity263.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity157.00
Code structure
Namespaces96
Interfaces106
Traits18
Classes396
▷ Abstract classes307.58%
▷ Concrete classes36692.42%
▷ Final classes10.27%
Methods4,516
▷ Static methods53211.78%
▷ Public methods3,51177.75%
▷ Protected methods89019.71%
▷ Private methods1152.55%
Functions379
▷ Named functions15741.42%
▷ Anonymous functions22258.58%
Constants91
▷ Global constants1213.19%
▷ Class constants7986.81%
▷ Public constants79100.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
16 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/plugins/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
admin/plugins/cmb2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
all/template/images/ant-arrow-left.png0.57KB0.19KB▼ 66.55%
admin/plugins/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
admin/plugins/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%