83% simple-responsive-wp-slider

Code Review | Simple Responsive WP Slider

WordPress plugin Simple Responsive WP Slider scored83%from 54 tests.

About plugin

  • Plugin page: simple-responsive...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jan 2, 2021
  • Latest release: Jan 2, 2021
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: niki_sebi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,627 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.51ms] Passed 4 tests

An overview of server-side resources used by Simple Responsive WP Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.09 ▲2.12
Dashboard /wp-admin3.31 ▲0.0052.48 ▲1.70
Posts /wp-admin/edit.php3.36 ▲0.0050.79 ▼9.17
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.18 ▲3.50
Media Library /wp-admin/upload.php3.23 ▲0.0036.54 ▼4.70

Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/simple-responsive-wp-slider/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/simple-responsive-wp-slider/assets/icon-256\303\227256.png"
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Simple Responsive WP Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.73 ▲0.321.84 ▼0.2443.08 ▼3.14
Dashboard /wp-admin2,206 ▲185.91 ▲0.00103.65 ▼3.5240.24 ▼3.70
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0135.17 ▼5.3034.88 ▼2.14
Add New Post /wp-admin/post-new.php1,533 ▲1423.11 ▲0.04623.99 ▼67.6860.83 ▲14.72
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.11103.90 ▼15.7145.50 ▼2.93

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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
Everything seems fine, however this is by no means 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 items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-responsive-wp-slider/cpt/sws_slider.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-responsive-wp-slider/simple-wp-slider.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Add slider page), #2 (Slider shorcodes on page)
The official readme.txt might help

simple-responsive-wp-slider/simple-wp-slider.php 77% from 13 tests

"Simple Responsive WP Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 246 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-responsive-wp-slider.php" instead of "simple-wp-slider.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected644 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS3545343
PHP2134141277
SVG11013
JavaScript20011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions11
▷ Named functions11100.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
3 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Screen Shot 2020-12-19 at 6.52.00 PM.png93.39KB16.96KB▼ 81.84%
assets/Screen Shot 2020-12-19 at 6.52.20 PM.png174.68KB41.91KB▼ 76.01%
assets/icon-256×256.png4.19KB3.13KB▼ 25.30%