78% slidercat

Code Review | sliderCat

WordPress plugin sliderCat scored78%from 54 tests.

About plugin

  • Plugin page: slidercat
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.8
  • WordPress version: 6.3.1
  • First release: Oct 1, 2014
  • Latest release: Nov 22, 2016
  • Number of updates: 24
  • Update frequency: every 41.3 days
  • Top authors: damiroquai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,616 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.48ms] Passed 4 tests

Analyzing server-side resources used by sliderCat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.72 ▼5.17
Dashboard /wp-admin3.37 ▲0.0345.29 ▼15.31
Posts /wp-admin/edit.php3.43 ▲0.0745.88 ▼1.17
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.33 ▼4.00
Media Library /wp-admin/upload.php3.30 ▲0.0733.76 ▼1.43
Add New Slide /wp-admin/post-new.php?post_type=post_type_slider3.4246.31
General Settings /wp-admin/edit.php?post_type=post_type_slider&page=slidercat-settings3.2429.54
Slideshows /wp-admin/edit-tags.php?taxonomy=slidercat&post_type=post_type_slider3.2932.06
All Slides /wp-admin/edit.php?post_type=post_type_slider3.3433.18

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
slidercat_options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by sliderCat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10014.39 ▲0.021.56 ▲0.0640.85 ▼0.32
Dashboard /wp-admin2,237 ▲625.60 ▼0.0583.19 ▼17.0536.16 ▼6.62
Posts /wp-admin/edit.php2,139 ▲422.09 ▲0.1137.09 ▼0.2932.47 ▼3.68
Add New Post /wp-admin/post-new.php1,558 ▲2723.18 ▼0.02675.61 ▲39.7152.81 ▼5.53
Media Library /wp-admin/upload.php1,439 ▲394.21 ▲0.0294.04 ▼25.4243.17 ▼8.25
Add New Slide /wp-admin/post-new.php?post_type=post_type_slider4,8128.20176.1473.39
General Settings /wp-admin/edit.php?post_type=post_type_slider&page=slidercat-settings1,0712.1322.1731.17
Slideshows /wp-admin/edit-tags.php?taxonomy=slidercat&post_type=post_type_slider1,3052.1429.2331.18
All Slides /wp-admin/edit.php?post_type=post_type_slider1,1111.9731.3129.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • slidercat_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=post_type_slider&page=slidercat-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/edit.php?post_type=post_type_slider&page=slidercat-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/slidercat/slidercat-admin.php
    • > /wp-content/plugins/slidercat/slidercat.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
The official readme.txt is a good inspiration

slidercat/slidercat.php Passed 13 tests

Analyzing the main PHP file in "sliderCat" version 1.0
79 characters long description:
Multiple shortcode slideshows with bunch of animated text effects and styles...

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,805 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP2194291,620
CSS22530103
JavaScript4118782

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity90.00
▷ Minimum class complexity59.00
▷ Maximum class complexity121.00
Average method complexity6.24
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods720.59%
▷ Public methods34100.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/bg_cont_white.png0.17KB0.09KB▼ 46.93%
images/bg_cont_black.png0.17KB0.09KB▼ 46.93%
images/bg_direction_nav.png0.57KB0.37KB▼ 35.40%
images/bg_play_pause.png0.80KB0.52KB▼ 35.08%