78% wp-skitter-slideshow

Code Review | Skitter Slideshow

WordPress plugin Skitter Slideshow scored 78% from 54 tests.

About plugin

  • Plugin page: wp-skitter-slideshow
  • Plugin version: 2.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.5.3
  • WordPress version: 5.8.1
  • First release: May 15, 2011
  • Latest release: Aug 2, 2016
  • Number of updates: 97
  • Update frequency: every 19.7 days
  • Top authors: thiagosf (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active / 72,005 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
This plugin's installer ran successfully

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

A check of server-side resources used by Skitter Slideshow
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.2339.93 ▲20.26
Dashboard /wp-admin3.18 ▲0.1343.93 ▼9.02
Posts /wp-admin/edit.php3.23 ▲0.1347.62 ▼0.81
Add New Post /wp-admin/post-new.php5.54 ▲0.1191.47 ▼566.41
Media Library /wp-admin/upload.php3.12 ▲0.1234.57 ▲2.87
Skitter Slideshow /wp-admin/options-general.php?page=wp_skitter_menu3.1136.51

Server storage [IO: ▲1.16MB] [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: 20 new files
Database: no new tables, 14 new options
New WordPress options
wp_skitter_type
wp_skitter_category
wp_skitter_type_navigation
wp_skitter_navigation
wp_skitter_background
wp_skitter_theme
wp_skitter_attachments
wp_skitter_label
wp_skitter_slides
wp_skitter_numbers_align
...

Browser metrics Passed 4 tests

A check of browser resources used by Skitter Slideshow
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,831 ▲23516.37 ▲0.8017.91 ▲6.4443.87 ▼5.01
Dashboard /wp-admin2,975 ▲416.18 ▲0.23184.98 ▲40.26109.23 ▲6.92
Posts /wp-admin/edit.php2,750 ▲112.72 ▲0.0167.19 ▼0.4991.33 ▲2.99
Add New Post /wp-admin/post-new.php1,681 ▼618.89 ▼0.01398.95 ▼6.06107.56 ▼5.22
Media Library /wp-admin/upload.php1,818 ▲85.10 ▲0.05148.97 ▼2.27113.54 ▼5.28
Skitter Slideshow /wp-admin/options-general.php?page=wp_skitter_menu2,3292.3757.18102.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • wp_skitter_animation
    • wp_skitter_background
    • wp_skitter_attachments
    • wp_skitter_type
    • wp_skitter_navigation
    • wp_skitter_auto_play
    • wp_skitter_theme
    • wp_skitter_numbers_align
    • wp_skitter_crop
    • wp_skitter_category
    • ...

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-skitter-slideshow/wp-skitter-slideshow.php:28

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wp_skitter_menu
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=wp_skitter_menu:247:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
    • > GET request to /wp-admin/options-general.php?page=wp_skitter_menu
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: jQuery(...).live is not a function

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
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Basic configuration), #2 (Adding the plugin in your template), #3 (Setting up the post with the picture for the slider and how to use a different URL of the post), #4 (Choosing the main image of the post to be displayed), #5 (Plugin working)
The official readme.txt might help

wp-skitter-slideshow/wp-skitter-slideshow.php Passed 13 tests

The main file in "Skitter Slideshow" v. 2.5.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
jQuery Slideshow for Wordpress using Skitter Slideshow

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,895 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript47073502,967
PHP2182107927
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.34MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sprite-minimalist.png1.34KB1.13KB▼ 15.54%
images/sprite-default.png2.60KB1.33KB▼ 49.02%
images/sprite-round.png3.06KB2.25KB▼ 26.23%
images/sprite-clean.png3.68KB2.25KB▼ 38.97%
screenshot-4.png149.15KB57.38KB▼ 61.53%