78% parallax-scroll-wp

Code Review | Parallax Scroll - Parallax Scrolling Backgrounds & Call to Action WordPress Plugin

WordPress plugin Parallax Scroll - Parallax Scrolling Backgrounds & Call to Action WordPress Plugin scored78%from 54 tests.

About plugin

  • Plugin page: parallax-scroll-wp
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 25, 2022
  • Latest release: Nov 15, 2023
  • Number of updates: 11
  • Update frequency: every 34.2 days
  • Top authors: LogicHunt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Parallax Scroll - Parallax Scrolling Backgrounds & Call to Action WordPress Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.19 ▲0.87
Dashboard /wp-admin3.35 ▲0.0144.74 ▼14.51
Posts /wp-admin/edit.php3.41 ▲0.0545.81 ▼9.31
Add New Post /wp-admin/post-new.php5.94 ▲0.0591.06 ▲7.24
Media Library /wp-admin/upload.php3.28 ▲0.0532.86 ▲1.39
Usage & Help /wp-admin/edit.php?post_type=lgx_parallax&page=lgx_counter_help_usage3.3134.76
Add New /wp-admin/post-new.php?post_type=lgx_parallax3.4552.78
All Sections /wp-admin/edit.php?post_type=lgx_parallax3.3539.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Parallax Scroll - Parallax Scrolling Backgrounds & Call to Action WordPress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲8114.37 ▲0.011.66 ▲0.1439.40 ▲1.27
Dashboard /wp-admin2,221 ▲435.62 ▼0.20117.85 ▲5.0968.29 ▲29.96
Posts /wp-admin/edit.php2,135 ▲322.01 ▲0.0539.25 ▲1.4736.84 ▲5.07
Add New Post /wp-admin/post-new.php1,565 ▲3925.28 ▲1.99599.80 ▼93.8366.95 ▲8.81
Media Library /wp-admin/upload.php1,432 ▲294.25 ▲0.03101.82 ▲3.4045.31 ▲4.80
Usage & Help /wp-admin/edit.php?post_type=lgx_parallax&page=lgx_counter_help_usage1,2863.2641.8347.97
Add New /wp-admin/post-new.php?post_type=lgx_parallax3,2557.67221.3292.92
All Sections /wp-admin/edit.php?post_type=lgx_parallax1,3003.4852.2927.78

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/parallax-scroll-wp/public/partials/parallax-scroll-wp-public-display.php
    • > /wp-content/plugins/parallax-scroll-wp/admin/partials/shortcode_meta_display/__section_meta_help_block.php
    • > /wp-content/plugins/parallax-scroll-wp/admin/partials/parallax-scroll-wp-admin-display.php
    • > /wp-content/plugins/parallax-scroll-wp/admin/partials/shortcode_meta_display/__section_meta_get_pro.php
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/parallax-scroll-wp/admin/partials/shortcode_meta_display/__section_meta_header.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/parallax-scroll-wp/public/partials/view-controller.php:24
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/parallax-scroll-wp/admin/partials/shortcode_meta_display/__section_meta_help_block.php on line 19
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/parallax-scroll-wp/public/partials/view-controller.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/parallax-scroll-wp/public/partials/template/view-default.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/parallax-scroll-wp/public/partials/view-controller.php on line 23
    • > PHP Notice
      Undefined variable: post in wp-content/plugins/parallax-scroll-wp/admin/partials/shortcode_meta_display/__section_meta_help_block.php on line 7
    • > PHP Warning
      Use of undefined constant LGX_PARALLAX_PLUGIN_META_FIELD_PRO - assumed 'LGX_PARALLAX_PLUGIN_META_FIELD_PRO' (this will throw an Error in a future version of PHP) in wp-content/plugins/parallax-scroll-wp/admin/partials/shortcode_meta_display/__section_meta_get_pro.php on line 7
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/parallax-scroll-wp/admin/partials/shortcode_meta_display/__section_meta_help_block.php on line 19
    • > PHP Notice
      Trying to get property 'ID' of non-object in wp-content/plugins/parallax-scroll-wp/admin/partials/shortcode_meta_display/__section_meta_help_block.php on line 7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

parallax-scroll-wp/parallax-scroll-wp.php Passed 13 tests

The main file in "Parallax Scroll - Parallax Scrolling Backgrounds & Call to Action WordPress Plugin" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
108 characters long description:
Amazing Section Builder Plugin to Build a Responsive and Attractive Section with Background Parallax Effect.

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
No dangerous file extensions were detected8,574 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
LESS186091634,840
PHP339499382,086
JavaScript92835931,196
CSS767452

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity34.88
▷ Minimum class complexity1.00
▷ Maximum class complexity215.00
Average method complexity5.37
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods60
▷ Static methods23.33%
▷ Public methods5490.00%
▷ Protected methods00.00%
▷ Private methods610.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/lgx-logo-metabox.png4.97KB2.39KB▼ 51.88%
admin/img/ls-logo.png0.97KB0.11KB▼ 88.59%