84% parallax-section

Code Review | Parallax Section block - Parallax scrolling effects in section.

WordPress plugin Parallax Section block - Parallax scrolling effects in section. scored84%from 54 tests.

About plugin

  • Plugin page: parallax-section
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 26, 2022
  • Latest release: Nov 12, 2023
  • Number of updates: 27
  • Update frequency: every 24.3 days
  • Top authors: charlescormier (92.59%)abuhayat (11.11%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /13,823 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: ▼3.63ms] Passed 4 tests

Server-side resources used by Parallax Section block - Parallax scrolling effects in section.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0534.42 ▼5.05
Dashboard /wp-admin3.34 ▲0.0445.21 ▼6.26
Posts /wp-admin/edit.php3.39 ▲0.0446.45 ▼2.29
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.28 ▼0.92
Media Library /wp-admin/upload.php3.27 ▲0.0438.19 ▲2.12

Server storage [IO: ▲0.38MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Parallax Section block - Parallax scrolling effects in section.
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.30 ▼0.051.73 ▲0.0738.96 ▼5.51
Dashboard /wp-admin2,195 ▲185.55 ▼0.1290.08 ▼10.9239.62 ▼4.77
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0139.52 ▼6.1637.63 ▲0.22
Add New Post /wp-admin/post-new.php6,369 ▲4,84327.52 ▲4.20830.73 ▲142.1460.90 ▲4.89
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.0396.58 ▼9.8540.93 ▼5.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant PSB_PLUGIN_VERSION - assumed 'PSB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/parallax-section/dist/editor.asset.php on line 4

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 uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

parallax-section/plugin.php 92% from 13 tests

The principal PHP file in "Parallax Section block - Parallax scrolling effects in section." v. 1.0.8 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("parallax-section.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected216 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP3251594
JSON20070
PO File1152348
CSS2022
JavaScript2022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin