57% seo-landing-page-generator

Code Review | SEO Landing Page Generator

WordPress plugin SEO Landing Page Generator scored57%from 54 tests.

About plugin

  • Plugin page: seo-landing-page-...
  • Plugin version: 1.64.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Nov 1, 2018
  • Latest release: Jul 20, 2023
  • Number of updates: 130
  • Update frequency: every 13.3 days
  • Top authors: intellasoftsolutions (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /6,450 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.49MB] [CPU: ▲5.06ms] Passed 4 tests

An overview of server-side resources used by SEO Landing Page Generator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.56 ▲1.1045.44 ▲9.22
Dashboard /wp-admin4.94 ▲1.5959.47 ▼0.46
Posts /wp-admin/edit.php5.00 ▲1.6455.98 ▲9.66
Add New Post /wp-admin/post-new.php7.50 ▲1.61103.01 ▲1.81
Media Library /wp-admin/upload.php4.88 ▲1.6550.79 ▲14.34
Edit State /wp-admin/admin.php?page=issslpg-edit-state4.8349.39
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius5.2144.31
Edit County /wp-admin/admin.php?page=issslpg-edit-county4.8342.95
Category /wp-admin/edit-tags.php?taxonomy=issslpg-template-category&post_type=issslpg-template4.8744.12
Edit City /wp-admin/admin.php?page=issslpg-edit-city4.8347.97
Add New /wp-admin/post-new.php?post_type=issslpg-landing-page5.2165.46
Template Pages /wp-admin/edit.php?post_type=issslpg-template5.0064.60
Add New /wp-admin/post-new.php?post_type=issslpg-template5.1366.14
Landing Pages /wp-admin/edit.php?post_type=issslpg-landing-page4.9748.18

Server storage [IO: ▲9.54MB] [DB: ▲0.12MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 1,220 new files
Database: 18 new tables, 23 new options
New tables
wp_issslpg_zip_codes
wp_issslpg_state_demographics
wp_issslpg_city_zip_code
wp_issslpg_city_data
wp_issslpg_countries
wp_issslpg_states
wp_issslpg_logs
wp_issslpg_city_demographics
wp_issslpg_scheduled_landing_page_updates
wp_issslpg_state_data
...
New WordPress options
issslpg_next_beat
iss_debug_settings
widget_recent-comments
widget_issslpg_admin_cities_in_county_widget
widget_issslpg_admin_zip_codes_widget
issslpg_settings
issscr_settings
theysaidso_admin_options
issslpg_original_installation_version
fs_active_plugins
...

Browser metrics Passed 4 tests

SEO Landing Page Generator: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲19713.57 ▼0.811.86 ▲0.1433.04 ▼9.46
Dashboard /wp-admin2,343 ▲1575.33 ▲0.40107.74 ▲4.3844.74 ▲4.48
Posts /wp-admin/edit.php2,230 ▲1442.61 ▲0.6337.11 ▲2.1932.90 ▼4.05
Add New Post /wp-admin/post-new.php1,626 ▲10518.45 ▼5.06639.47 ▼29.3034.71 ▼18.62
Media Library /wp-admin/upload.php1,525 ▲1434.66 ▲0.38109.41 ▲4.2048.41 ▲4.67
Edit State /wp-admin/admin.php?page=issslpg-edit-state9412.2929.3134.06
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1972.1428.0926.17
Edit County /wp-admin/admin.php?page=issslpg-edit-county9412.1329.8233.30
Category /wp-admin/edit-tags.php?taxonomy=issslpg-template-category&post_type=issslpg-template1,4012.2631.6132.87
Edit City /wp-admin/admin.php?page=issslpg-edit-city9442.1128.3730.85
Add New /wp-admin/post-new.php?post_type=issslpg-landing-page3,4217.97159.81157.40
Template Pages /wp-admin/edit.php?post_type=issslpg-template1,8282.6539.1139.10
Add New /wp-admin/post-new.php?post_type=issslpg-template3,1648.29174.53159.00
Landing Pages /wp-admin/edit.php?post_type=issslpg-landing-page1,2332.5837.5140.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/seo-landing-page-generator/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • The plugin did not uninstall successfully, leaving 16 tables in the database
    • wp_issslpg_state_demographics
    • wp_issslpg_county_data
    • wp_issslpg_scheduled_landing_page_updates
    • wp_issslpg_country_data
    • wp_issslpg_excluded_county_template_pages
    • wp_issslpg_state_data
    • wp_issslpg_counties
    • wp_issslpg_city_zip_code
    • wp_issslpg_logs
    • wp_issslpg_download_queue
    • ...
  • This plugin does not fully uninstall, leaving 23 options in the database
    • widget_issslpg_admin_zip_codes_widget
    • can_compress_scripts
    • widget_issslpg_admin_directions_map_widget
    • fs_active_plugins
    • widget_issslpg_admin_related_landing_pages_widget
    • db_upgraded
    • issscr_settings
    • theysaidso_admin_options
    • issslpg_seed_download_queue_with_demographics_slots
    • issslpg_original_installation_version
    • ...

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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/seo-landing-page-generator/public/partials/issslpg-public-display.php
    • > /wp-content/plugins/seo-landing-page-generator/admin/partials/issslpg-admin-display.php
  • 294× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WeDevs\\ORM\\Eloquent\\Model' not found in wp-content/plugins/seo-landing-page-generator/includes/models/class-country.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/seo-landing-page-generator/vendor/symfony/translation/Tests/Dumper/CsvFileDumperTest.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Support\\Facades\\Facade' not found in wp-content/plugins/seo-landing-page-generator/vendor/illuminate/support/Facades/Redirect.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/seo-landing-page-generator/admin/widgets/class-issslpg-admin-map-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface' not found in wp-content/plugins/seo-landing-page-generator/vendor/symfony/translation/DependencyInjection/TranslationDumperPass.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/seo-landing-page-generator/vendor/symfony/translation/Tests/MessageSelectorTest.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Illuminate\\Database\\Grammar' not found in wp-content/plugins/seo-landing-page-generator/vendor/illuminate/database/Schema/Grammars/Grammar.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\PluralizationRules' not found in wp-content/plugins/seo-landing-page-generator/vendor/nesbot/carbon/src/Carbon/Lang/sh.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Illuminate\\Contracts\\Pagination\\Paginator' not found in wp-content/plugins/seo-landing-page-generator/vendor/illuminate/contracts/Pagination/LengthAwarePaginator.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/seo-landing-page-generator/vendor/symfony/translation/Tests/PluralizationRulesTest.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed: Please take inspiration from this readme.txt

seo-landing-page-generator/seo-landing-page-generator.php 92% from 13 tests

The primary PHP file in "SEO Landing Page Generator" version 1.64.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • 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

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin152,496 lines of code in 975 files:
LanguageFilesBlank linesComment linesLines of code
PHP70020,75350,42583,709
PO File12614,32218,50232,360
JavaScript212,3201,68611,226
CSS394541,3787,757
JSON18005,304
XSD499764,991
SQL2002,783
Markdown1487302,223
Sass17305291,407
XML1894350
LESS817970298
SVG20070
Qt Linguist10010
YAML4007
INI1001

PHP code 0% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 157)
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity17.84
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity157.00
Code structure
Namespaces84
Interfaces80
Traits5
Classes469
▷ Abstract classes316.61%
▷ Concrete classes43893.39%
▷ Final classes10.23%
Methods5,904
▷ Static methods83214.09%
▷ Public methods4,67279.13%
▷ Protected methods71912.18%
▷ Private methods5138.69%
Functions344
▷ Named functions22866.28%
▷ Anonymous functions11633.72%
Constants256
▷ Global constants10942.58%
▷ Class constants14757.42%
▷ Public constants147100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
21 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/plugins/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
admin/plugins/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
admin/plugins/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
admin/plugins/cmb2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
admin/plugins/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%