78% responsive-slider-full-screen

Code Review | Responsive Slider Full Screen

WordPress plugin Responsive Slider Full Screen scored78%from 54 tests.

About plugin

  • Plugin page: responsive-slider...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Mar 9, 2016
  • Latest release: Mar 9, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: module.express (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,701 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.07MB] [CPU: ▼1.79ms] Passed 4 tests

This is a short check of server-side resources used by Responsive Slider Full Screen
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.92 ▲1.10
Dashboard /wp-admin3.36 ▲0.0649.70 ▼4.85
Posts /wp-admin/edit.php3.47 ▲0.1247.43 ▼0.83
Add New Post /wp-admin/post-new.php5.97 ▲0.0895.22 ▲2.54
Media Library /wp-admin/upload.php3.28 ▲0.0635.23 ▼2.59
Gallery showcases /wp-admin/edit.php?post_type=sp_slider_fullscreen&page=responsive_gallery-rsfs-bar-submenu-page3.2533.53
Add New /wp-admin/post-new.php?post_type=sp_slider_fullscreen3.4253.45
All Images /wp-admin/edit.php?post_type=sp_slider_fullscreen3.3337.94
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_rsfs_slider-category&post_type=sp_slider_fullscreen3.2837.49

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Slider Full Screen
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,955 ▲20913.71 ▼0.616.68 ▲4.9536.89 ▼6.83
Dashboard /wp-admin2,241 ▲535.87 ▼0.01105.24 ▼13.4542.68 ▼2.68
Posts /wp-admin/edit.php2,124 ▲352.02 ▲0.0039.00 ▲3.6335.77 ▼0.83
Add New Post /wp-admin/post-new.php1,563 ▲3023.11 ▲0.10626.25 ▼33.3135.19 ▼14.48
Media Library /wp-admin/upload.php1,423 ▲414.21 ▲0.0395.22 ▼27.8042.89 ▼4.86
Gallery showcases /wp-admin/edit.php?post_type=sp_slider_fullscreen&page=responsive_gallery-rsfs-bar-submenu-page8202.0123.7030.31
Add New /wp-admin/post-new.php?post_type=sp_slider_fullscreen2,4117.68186.8973.15
All Images /wp-admin/edit.php?post_type=sp_slider_fullscreen1,1081.9235.6427.92
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_rsfs_slider-category&post_type=sp_slider_fullscreen1,2832.1427.5528.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 4× 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/responsive-slider-full-screen/rsfs_gallery_admin_settings_center.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-slider-full-screen/responsive-slider-full-screen.php:399
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/responsive-slider-full-screen/multiple-post-thumbnails.php:441
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/responsive-slider-full-screen/designs/template.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=sp_slider_fullscreen&page=responsive_gallery-rsfs-bar-submenu-page
    • > Network (severe)
    wp-content/plugins/responsive-slider-full-screen/images/design-1.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
The official readme.txt is a good inspiration

responsive-slider-full-screen/responsive-slider-full-screen.php Passed 13 tests

"Responsive Slider Full Screen" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
A simple Responsive Slider Full Screen

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 plugin5,579 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,3548124,828
PHP4128170589
CSS32217133
PO File14629

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity35.00
▷ Minimum class complexity22.00
▷ Maximum class complexity48.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods620.00%
▷ Public methods2893.33%
▷ Protected methods00.00%
▷ Private methods26.67%
Functions4
▷ Named functions4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/d21.png1.26KB0.79KB▼ 37.33%
css/n21.png0.84KB0.66KB▼ 21.64%