73% slippy-slider-responsive-touch-navigation-slider

Code Review | Slippy Slider - Responsive Touch Navigation Slider

WordPress plugin Slippy Slider - Responsive Touch Navigation Slider scored73%from 54 tests.

About plugin

  • Plugin page: slippy-slider-res...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2013
  • Latest release: Jun 30, 2014
  • Number of updates: 12
  • Update frequency: every 25.6 days
  • Top authors: mitegvg (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /5,880 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼18.14ms] Passed 4 tests

This is a short check of server-side resources used by Slippy Slider - Responsive Touch Navigation Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.92 ▼1.86
Dashboard /wp-admin3.17 ▼0.1330.67 ▼30.80
Posts /wp-admin/edit.php3.31 ▼0.0536.54 ▼18.07
Add New Post /wp-admin/post-new.php5.55 ▼0.3471.02 ▼16.07
Media Library /wp-admin/upload.php3.26 ▲0.0331.09 ▼7.62

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: 1 new table, 12 new options
New tables
wp_ssjp
New WordPress options
widget_theysaidso_widget
widget_recent-comments
ssjp_animation
ssjp_width_Homepage
ssjp_category
ssjp_height_Homepage
ssjp_height
ssjp_autoplay
widget_recent-posts
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for Slippy Slider - Responsive Touch Navigation Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲18414.10 ▼0.288.66 ▲6.6444.44 ▼3.42
Dashboard /wp-admin2,224 ▲365.79 ▲0.94100.08 ▼17.5798.05 ▲53.77
Posts /wp-admin/edit.php2,101 ▲122.02 ▼0.0335.15 ▲0.0732.79 ▼2.98
Add New Post /wp-admin/post-new.php1,527 ▼723.12 ▲0.07735.32 ▲34.3154.73 ▼3.40
Media Library /wp-admin/upload.php1,397 ▲64.13 ▼0.09103.27 ▲1.2867.38 ▲18.53

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_ssjp
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • ssjp_height
    • ssjp_animation
    • widget_recent-posts
    • db_upgraded
    • ssjp_category
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • ssjp_height_Homepage
    • ssjp_autoplay
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/slippy-slider-responsive-touch-navigation-slider/slippy-slider.php:732
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/slippy-slider-responsive-touch-navigation-slider/slippy-slider.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Screenshot displayed on the web site.), #2 (Responsive design), #3 (Admin area of the plugin)
You can take inspiration from this readme.txt

slippy-slider-responsive-touch-navigation-slider/slippy-slider.php 92% from 13 tests

The main PHP file in "Slippy Slider - Responsive Touch Navigation Slider" ver. 2.0 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("slippy-slider-responsive-touch-navigation-slider.php" instead of "slippy-slider.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
No dangerous file extensions were detected1,017 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP113912644
JavaScript46010250
CSS160123

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.33
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png56.05KB23.08KB▼ 58.82%
screenshot-2.png51.07KB18.04KB▼ 64.67%
screenshot-3.png72.34KB24.25KB▼ 66.48%
images/navigation-20px.png1.56KB0.79KB▼ 49.28%
(invalid) images/grab.png0.10KB0.00KB▼ 100.00%