53% seamless-slider

Code Review | Seamless Slider

WordPress plugin Seamless Slider scored53%from 54 tests.

About plugin

  • Plugin page: seamless-slider
  • Plugin version: 0.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2015
  • Latest release: Oct 12, 2015
  • Number of updates: 69
  • Update frequency: every 0.3 days
  • Top authors: Guramidev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,649 total downloads

Benchmarks

Plugin footprint 30% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.80ms] Passed 4 tests

A check of server-side resources used by Seamless Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.29 ▲3.10
Dashboard /wp-admin3.33 ▲0.0343.52 ▼7.18
Posts /wp-admin/edit.php3.45 ▲0.0943.88 ▲3.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0378.75 ▼21.52
Media Library /wp-admin/upload.php3.26 ▲0.0336.02 ▲2.42

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 122 new files
Database: 3 new tables, 6 new options
New tables
wp_ss_version
wp_ss_slides
wp_ss_sliders
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Seamless Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4314.32 ▼0.031.78 ▼0.2043.94 ▼1.13
Dashboard /wp-admin2,213 ▲395.68 ▲0.1183.15 ▼2.9666.79 ▲31.65
Posts /wp-admin/edit.php2,115 ▲151.99 ▼0.0236.90 ▼3.3535.14 ▼3.67
Add New Post /wp-admin/post-new.php1,555 ▲2722.92 ▼0.05769.87 ▲157.2059.15 ▲7.04
Media Library /wp-admin/upload.php1,412 ▲154.18 ▲0.0096.09 ▼6.8867.95 ▲26.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin cannot be uninstalled
    • > Error in wp-content/plugins/seamless-slider/classes/Config.php+5
    Cannot declare class SeamlessSlider\Config, because the name is already in use
  • The plugin did not uninstall correctly, leaving 122 files (5.31MB) in the plugin directory
    • (new file) admin/css/dev/fonts/fontello.woff
    • (new file) admin/css/dev/fonts/fontello.svg
    • (new file) admin/css/dev/fonts/fontello.ttf
    • (new file) admin/css/dev/media-streamer.css
    • (new file) admin/css/dev/fonts/fontello.eot
    • (new file) admin/css/production/color-picker.css
    • (new file) admin/css/production/fonts/fontello.eot
    • (new file) admin/css/dev/vendor/bootstrap.min.css
    • (new file) admin/css/dev/color-picker.css
    • (new file) admin/css/dev/index.css
    • ...
  • Zombie tables were found after uninstall: 3 tables
    • wp_ss_slides
    • wp_ss_sliders
    • wp_ss_version
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SeamlessSlider\\is_multisite() in wp-content/plugins/seamless-slider/classes/Adapter.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'SeamlessSlider\\Front' not found in wp-content/plugins/seamless-slider/front/templates/faster-slider.php:1
    • > PHP Fatal error
      Uncaught Error: Class 'SeamlessSlider\\Config' not found in wp-content/plugins/seamless-slider/front/index.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'SeamlessSlider\\API' not found in wp-content/plugins/seamless-slider/api/index.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'SeamlessSlider\\Config' not found in wp-content/plugins/seamless-slider/admin/index.php:3

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

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 89 tag instead of maximum 10
You can take inspiration from this readme.txt

seamless-slider/seamlessslider.php 92% from 13 tests

The main file in "Seamless Slider" v. 0.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seamless-slider.php" instead of "seamlessslider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin14,922 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript243,14415,58412,492
PHP14581651,128
CSS1032442670
HTML1920215350
Sass6610245
SVG10030
Ruby16137

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.26
Average class complexity14.12
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity2.02
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods104
▷ Static methods3735.58%
▷ Public methods8076.92%
▷ Protected methods00.00%
▷ Private methods2423.08%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 2.58MB with 1.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sample-slides/1.png463.03KB159.97KB▼ 65.45%
images/sample-slides/5.png539.51KB181.39KB▼ 66.38%
images/instagram-icon.png1.68KB1.14KB▼ 32.36%
images/sample-slides/4.png583.00KB191.54KB▼ 67.15%
images/sample-slides/3.png438.65KB125.95KB▼ 71.29%