84% wg-responsive-slider

Code Review | WG Responsive Slider

WordPress plugin WG Responsive Slider scored84%from 54 tests.

About plugin

  • Plugin page: wg-responsive-slider
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2019
  • Latest release: Apr 6, 2019
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: abdulbaquee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.96ms] Passed 4 tests

An overview of server-side resources used by WG Responsive Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1343.58 ▲2.17
Dashboard /wp-admin3.48 ▲0.1349.56 ▼16.34
Posts /wp-admin/edit.php3.57 ▲0.2149.12 ▲0.83
Add New Post /wp-admin/post-new.php6.17 ▲0.2883.00 ▼9.97
Media Library /wp-admin/upload.php3.41 ▲0.1838.57 ▲1.66
WG Sliders /wp-admin/admin.php?page=wgrs-slides3.3435.22
Slider Settings /wp-admin/admin.php?page=wgrs-settings3.4334.05
Add New Slide /wp-admin/admin.php?page=wgrs-uploads3.3732.27

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: 2 new tables, 6 new options
New tables
wp_slider_list
wp_sliders
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WG Responsive Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲16313.50 ▼0.668.46 ▲6.3942.77 ▲0.66
Dashboard /wp-admin2,225 ▲485.65 ▲0.0782.62 ▼11.9275.38 ▲33.08
Posts /wp-admin/edit.php2,127 ▲271.95 ▼0.0335.93 ▼1.9832.04 ▼5.32
Add New Post /wp-admin/post-new.php1,570 ▲4223.02 ▼0.32661.86 ▼34.62155.57 ▲103.67
Media Library /wp-admin/upload.php1,430 ▲304.35 ▲0.1499.96 ▼8.0279.71 ▲33.67
WG Sliders /wp-admin/admin.php?page=wgrs-slides8312.0125.3826.96
Slider Settings /wp-admin/admin.php?page=wgrs-settings1,3462.0324.9530.67
Add New Slide /wp-admin/admin.php?page=wgrs-uploads9142.0228.1829.35

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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

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
Please fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wg-responsive-slider/wgrs-slider-template.php
    • > /wp-content/plugins/wg-responsive-slider/uninstall.php
    • > /wp-content/plugins/wg-responsive-slider/wgrs-slides.php
    • > /wp-content/plugins/wg-responsive-slider/wgrs-settings.php
    • > /wp-content/plugins/wg-responsive-slider/wgrs-upload.php
    • > /wp-content/plugins/wg-responsive-slider/index.php
    • > /wp-content/plugins/wg-responsive-slider/wg-responsive-slider.php
    • > /wp-content/plugins/wg-responsive-slider/class.wgrs.slider.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

wg-responsive-slider/wg-responsive-slider.php 92% from 13 tests

The entry point to "WG Responsive Slider" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 412 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin4,241 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS4557213,075
PHP874421,164
JavaScript1052

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.76
Average class complexity122.00
▷ Minimum class complexity122.00
▷ Maximum class complexity122.00
Average method complexity10.31
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png0.95KB0.85KB▼ 10.50%