74% wp-parallax-content-slider

Code Review | WP Parallax Content Slider

WordPress plugin WP Parallax Content Slider scored74%from 54 tests.

About plugin

  • Plugin page: wp-parallax-conte...
  • Plugin version: 0.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Apr 23, 2012
  • Latest release: Jan 24, 2014
  • Number of updates: 74
  • Update frequency: every 8.8 days
  • Top authors: wp-maverick (100%)

Code review

54 tests

User reviews

34 reviews

Install metrics

700+ active /99,544 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼3.61ms] Passed 4 tests

This is a short check of server-side resources used by WP Parallax Content Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1144.37 ▲0.46
Dashboard /wp-admin3.41 ▲0.1148.28 ▼3.91
Posts /wp-admin/edit.php3.46 ▲0.1158.25 ▲10.56
Add New Post /wp-admin/post-new.php5.99 ▲0.1188.23 ▼8.88
Media Library /wp-admin/upload.php3.33 ▲0.1138.11 ▼2.10
WP Parallax Content Slider /wp-admin/options-general.php?page=wp-parallax-content-slider3.3135.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Parallax Content Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.42 ▼0.212.35 ▲0.6544.68 ▲1.94
Dashboard /wp-admin2,207 ▲255.84 ▲0.9497.54 ▼5.7841.38 ▼3.57
Posts /wp-admin/edit.php2,093 ▲72.04 ▲0.0039.07 ▲0.2836.28 ▼0.26
Add New Post /wp-admin/post-new.php1,545 ▲2623.09 ▲0.01587.71 ▼59.0854.84 ▼4.45
Media Library /wp-admin/upload.php1,392 ▲14.18 ▲0.0297.01 ▼5.8842.32 ▼2.57
WP Parallax Content Slider /wp-admin/options-general.php?page=wp-parallax-content-slider1,2232.0522.8028.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WpParallaxContentSlider::uninstall() should not be called statically
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • prlx_slider_settings
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-parallax-content-slider/wp-parallax-content-slider.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-parallax-content-slider/static-slides-sample.php:16

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

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (The slider displayed after the header), #2 (The admin panel)
You can look at the official readme.txt

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

The main PHP file in "WP Parallax Content Slider" ver. 0.9.8 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
A customizable JQuery content slider with CSS3 animations and parallax effects

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin4,750 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PO File139541,9972,457
CSS545261,480
PHP396125612
JavaScript412526201

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity7.00
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.54MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/default.png23.97KB7.75KB▼ 67.68%
images/1.png85.16KB24.51KB▼ 71.22%
images/3.png68.21KB16.66KB▼ 75.57%
images/2.png67.76KB19.93KB▼ 70.59%
images/arrows.png1.48KB0.69KB▼ 53.56%