10% felix-landing-pages

Code Review | Felix Landing Page

WordPress plugin Felix Landing Page scored 10% from 54 tests.

About plugin

  • Plugin page: felix-landing-pages
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.5.3
  • WordPress version: 5.9.2
  • First release: Aug 25, 2016
  • Latest release: Aug 25, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: smartcat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,402 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/felix-landing-pages/inc/class/class.Felix_LandPlugin.php+107
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.08MB] [CPU: ▼295.11ms] Passed 4 tests

Analyzing server-side resources used by Felix Landing Page
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1762.83 ▼11.32
Dashboard /wp-admin3.51 ▲0.1141.77 ▲5.34
Posts /wp-admin/edit.php3.74 ▲0.1044.69 ▲5.40
Add New Post /wp-admin/post-new.php6.97 ▲0.00104.17 ▼1,179.35
Media Library /wp-admin/upload.php3.39 ▲0.0930.80 ▲4.89
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php5.2463.07
Landing Page /wp-admin/options-general.php?page=landing-page-admin3.3629.93

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 4 new options
New WordPress options
felix_landing_page_template
widget_recent-comments
widget_recent-posts
felix_landing_page_options

Browser metrics Passed 4 tests

An overview of browser requirements for Felix Landing Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲6916.01 ▲0.847.24 ▲1.502.27 ▼0.23
Dashboard /wp-admin2,904 ▲496.30 ▲0.11116.50 ▼32.64163.47 ▼12.57
Posts /wp-admin/edit.php2,700 ▲63.25 ▲0.0062.67 ▼3.52196.61 ▲51.15
Add New Post /wp-admin/post-new.php1,669 ▲815.55 ▼1.54423.88 ▲2.43161.87 ▼47.09
Media Library /wp-admin/upload.php1,711 ▲165.53 ▲0.00166.14 ▲11.76205.21 ▼20.89
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php10,02120.91624.46194.61
Landing Page /wp-admin/options-general.php?page=landing-page-admin1,0812.4354.68114.25

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 4 options
    • widget_recent-comments
    • felix_landing_page_template
    • felix_landing_page_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
    • > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
    Trying to get property 'title' of non-object

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-navbar.php
    • > /wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-content.php
    • > /wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-jumbotron.php
    • > /wp-content/plugins/felix-landing-pages/bootstrap.php
    • > /wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-footer.php
  • 66× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/felix-landing-pages/inc/customizer/panels/products.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-content.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/felix-landing-pages/inc/customizer/panels/navbar.php:6
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-articles.php on line 24
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-jumbotron.php on line 56
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/felix-landing-pages/inc/customizer/panels/general.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-content.php on line 44
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-content.php on line 24
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-jumbotron.php on line 38
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/felix-landing-pages/inc/templates/landing_page/parts/part-products.php on line 22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Landing Page Template), #2 (Landing Page Customizer)
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

felix-landing-pages/bootstrap.php 92% from 13 tests

Analyzing the main PHP file in "Felix Landing Page" version 1.0.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("felix-landing-pages.php" instead of "bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin9,549 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
CSS95981107,208
PHP286615411,635
SVG100685
JavaScript320821

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.20
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods37
▷ Static methods12.70%
▷ Public methods3183.78%
▷ Protected methods00.00%
▷ Private methods616.22%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin