84% immersive-slider

Code Review | ImmersiveSlider

WordPress plugin ImmersiveSlider scored 84% from 54 tests.

About plugin

  • Plugin page: immersive-slider
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 24, 2020
  • Latest release: Sep 5, 2023
  • Number of updates: 14
  • Update frequency: every 94.3 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 615 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.34ms] Passed 4 tests

Analyzing server-side resources used by ImmersiveSlider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.71 ▼11.64
Dashboard /wp-admin3.37 ▲0.0746.10 ▼1.47
Posts /wp-admin/edit.php3.43 ▲0.0744.96 ▼2.76
Add New Post /wp-admin/post-new.php5.97 ▲0.0991.21 ▼5.24
Media Library /wp-admin/upload.php3.30 ▲0.0734.31 ▼9.71

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for ImmersiveSlider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.38 ▼1.031.65 ▼0.5439.42 ▼4.42
Dashboard /wp-admin2,220 ▲324.86 ▼0.03114.52 ▲5.8442.57 ▼2.04
Posts /wp-admin/edit.php2,120 ▲312.26 ▲0.2338.75 ▲3.1731.46 ▲0.26
Add New Post /wp-admin/post-new.php1,528 ▲923.55 ▲0.53645.92 ▼93.9151.12 ▼4.15
Media Library /wp-admin/upload.php1,412 ▲214.22 ▲0.0896.52 ▼8.2543.27 ▼1.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/immersive-slider/immersive-slider.php:336

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 33 tag instead of maximum 10
The official readme.txt might help

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

"ImmersiveSlider" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
126 characters long description:
ImmersiveSlider plugins allows you to insert and configure a Responsive jQuery Slider into your WordPress site as a shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin626 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24322238
CSS1247194
PHP18854194

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity13.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin