84% gulri-slider

Code Review | Gulri Slider

WordPress plugin Gulri Slider scored84%from 54 tests.

About plugin

  • Plugin page: gulri-slider
  • Plugin version: 3.5.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.2
  • WordPress version: 6.3.1
  • First release: Oct 22, 2014
  • Latest release: May 1, 2023
  • Number of updates: 58
  • Update frequency: every 53.7 days
  • Top authors: fahadmahmood (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,286 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
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲0.31ms] Passed 4 tests

Analyzing server-side resources used by Gulri Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2242.11 ▼3.08
Dashboard /wp-admin3.39 ▲0.0850.38 ▼1.09
Posts /wp-admin/edit.php3.50 ▲0.1446.81 ▲1.44
Add New Post /wp-admin/post-new.php5.97 ▲0.0897.33 ▲7.36
Media Library /wp-admin/upload.php3.31 ▲0.0838.48 ▲3.99

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Gulri Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.19 ▼1.191.74 ▼0.6638.45 ▼8.86
Dashboard /wp-admin2,222 ▲315.85 ▲0.00111.65 ▼25.5744.56 ▲2.84
Posts /wp-admin/edit.php2,108 ▲192.03 ▲0.0239.06 ▲1.7336.68 ▲3.44
Add New Post /wp-admin/post-new.php1,527 ▼817.57 ▼5.65618.02 ▼59.2960.65 ▼2.75
Media Library /wp-admin/upload.php1,398 ▲104.29 ▲0.0397.09 ▼13.9146.05 ▲3.97

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/gulri-slider/inc/sliders-admin.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/gulri-slider/inc/single-slider.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/gulri-slider/inc/functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/gulri-slider/inc/slider-transitions.php:5

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: slider pulgin, video slider, image slide show, gulri slider, slideshow...

gulri-slider/index.php 92% from 13 tests

The principal PHP file in "Gulri Slider" v. 3.5.7 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gulri-slider.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected11,042 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
SVG4019,579
PHP548254914
PO File3105108261
JavaScript516230214
CSS3151074

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 1.62MB with 0.99MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/features-banner.png1,654.84KB643.30KB▼ 61.13%