84% parallax-slider

Code Review | ParallaxSlider

WordPress plugin ParallaxSlider scored 84% from 54 tests.

About plugin

  • Plugin page: parallax-slider
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: May 30, 2020
  • Latest release: Sep 5, 2023
  • Number of updates: 8
  • Update frequency: every 149.6 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,113 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.84ms] Passed 4 tests

An overview of server-side resources used by ParallaxSlider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.27 ▼3.70
Dashboard /wp-admin3.38 ▲0.0845.14 ▼3.90
Posts /wp-admin/edit.php3.43 ▲0.0849.45 ▲1.09
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.18 ▼12.84
Media Library /wp-admin/upload.php3.30 ▲0.0736.42 ▲1.84

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

ParallaxSlider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.25 ▼1.151.84 ▼0.1940.35 ▼7.40
Dashboard /wp-admin2,220 ▲325.88 ▼0.1698.97 ▼10.4537.58 ▼4.27
Posts /wp-admin/edit.php2,120 ▲282.27 ▲0.2341.06 ▼0.5034.61 ▼1.19
Add New Post /wp-admin/post-new.php1,528 ▲923.19 ▲0.19651.01 ▼13.4857.13 ▼9.35
Media Library /wp-admin/upload.php1,412 ▲274.28 ▲0.1096.14 ▼6.5241.94 ▼6.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parallax-slider/parallax-slider.php:390

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: responsive slider, parallax slider, slider, swiper slider

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

The primary PHP file in "ParallaxSlider" version 1.0.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
Responsive Horizontal Parallax Sliding Slider using Swiper.js.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin8,679 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript36893887,839
CSS21132617
PHP111255223

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin