90% parallax-slider-block

Code Review | Parallax Slider Block

WordPress plugin Parallax Slider Block scored90%from 54 tests.

About plugin

  • Plugin page: parallax-slider-b...
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Aug 26, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 11
  • Update frequency: every 86.0 days
  • Top authors: wpdevteam (90.91%)alam789 (18.18%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /11,618 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.15MB] [CPU: ▼6.95ms] Passed 4 tests

A check of server-side resources used by Parallax Slider Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1854.43 ▲14.11
Dashboard /wp-admin3.45 ▲0.1150.80 ▼9.61
Posts /wp-admin/edit.php3.57 ▲0.2148.00 ▲0.45
Add New Post /wp-admin/post-new.php6.06 ▲0.1783.83 ▼19.43
Media Library /wp-admin/upload.php3.38 ▲0.1436.95 ▲0.81

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

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

Browser metrics Passed 4 tests

Parallax Slider Block: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.07 ▼0.281.95 ▲0.4542.78 ▲3.26
Dashboard /wp-admin2,198 ▲185.59 ▼0.0885.20 ▼2.9341.55 ▲0.29
Posts /wp-admin/edit.php2,097 ▼32.00 ▼0.0235.22 ▼3.3533.46 ▼0.47
Add New Post /wp-admin/post-new.php1,492 ▼3617.39 ▼5.80677.88 ▲82.2965.12 ▲16.18
Media Library /wp-admin/upload.php1,403 ▲64.23 ▼0.00109.21 ▲10.7547.53 ▲5.50

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
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

parallax-slider-block/parallax-slider-block.php Passed 13 tests

Analyzing the main PHP file in "Parallax Slider Block" version 1.2.4
62 characters long description:
Create A Captivating Visual Experience & Impress Your Audience

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin770 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP10102165693
JavaScript511466
JSON1008
CSS3163

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity32.40
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.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
No PNG files were detected