88% easy-wp-parallax-slider

Code Review | Easy Wordpress Parallax Slider

WordPress plugin Easy Wordpress Parallax Slider scored 88% from 54 tests.

About plugin

  • Plugin page: easy-wp-parallax-...
  • Plugin version: 2.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.0
  • WordPress version: 5.8.1
  • First release: Oct 11, 2013
  • Latest release: May 18, 2016
  • Number of updates: 43
  • Update frequency: every 22.1 days
  • Top authors: oscitas (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active / 73,927 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.56MB] [CPU: ▼131.88ms] Passed 4 tests

This is a short check of server-side resources used by Easy Wordpress Parallax Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.36 ▲0.6439.44 ▲18.87
Dashboard /wp-admin3.66 ▲0.6052.27 ▲5.51
Posts /wp-admin/edit.php3.70 ▲0.6062.78 ▲16.55
Add New Post /wp-admin/post-new.php5.95 ▲0.52111.00 ▼551.07
Media Library /wp-admin/upload.php3.54 ▲0.5335.14 ▲1.48

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 74 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Easy Wordpress Parallax Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,730 ▲13416.36 ▲1.099.47 ▼1.0943.82 ▼7.25
Dashboard /wp-admin2,987 ▲505.93 ▼0.27159.62 ▲6.06129.36 ▲20.95
Posts /wp-admin/edit.php2,781 ▲422.73 ▲0.0377.35 ▲5.9697.78 ▲13.26
Add New Post /wp-admin/post-new.php1,704 ▲1718.09 ▼0.87408.37 ▲6.42111.55 ▲0.03
Media Library /wp-admin/upload.php1,852 ▲1045.04 ▲0.01135.39 ▼13.54139.60 ▲16.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-wp-parallax-slider/assets/css/dynamic_css.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/easy-wp-parallax-slider/easy-parallax-slider.php:13
    • > PHP Notice
      Undefined index: enqueue_script in wp-content/plugins/easy-wp-parallax-slider/assets/css/dynamic_css.php on line 5
    • > PHP Notice
      Undefined index: eps_single_slide_css in wp-content/plugins/easy-wp-parallax-slider/assets/css/eps_css.php on line 5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/easy-wp-parallax-slider/templates/eps_admin_page.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'epsSliderImageClass' not found in wp-content/plugins/easy-wp-parallax-slider/classes/slider/epsAdminSliderClass.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'epsSliderClass' not found in wp-content/plugins/easy-wp-parallax-slider/classes/epsSliderContentClass.php:5

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

easy-wp-parallax-slider/easy-parallax-slider.php 92% from 13 tests

The main PHP file in "Easy Wordpress Parallax Slider" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-wp-parallax-slider.php" instead of "easy-parallax-slider.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected9,312 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
CSS94902554,153
PHP103782652,747
JavaScript126417002,266
SVG100146

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 112)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity55.50
▷ Minimum class complexity3.00
▷ Maximum class complexity155.00
Average method complexity5.74
▷ Minimum method complexity1.00
▷ Maximum method complexity112.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods69
▷ Static methods00.00%
▷ Public methods4362.32%
▷ Protected methods811.59%
▷ Private methods1826.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
27 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/ie6/borderBottomRight.png0.21KB0.20KB▼ 5.53%
assets/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
assets/images/select2.png0.51KB0.33KB▼ 34.94%
assets/css/images/ie6/borderBottomLeft.png0.21KB0.20KB▼ 4.19%
assets/images/arrows.png1.48KB0.69KB▼ 53.56%