73% responsive-modern-slider

Code Review | Responsive Modern Slider

WordPress plugin Responsive Modern Slider scored73%from 54 tests.

About plugin

  • Plugin page: responsive-modern...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-5.0.0
  • WordPress version: 6.3.1
  • First release: Jan 22, 2016
  • Latest release: Dec 8, 2018
  • Number of updates: 30
  • Update frequency: every 35.0 days
  • Top authors: watson-77 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,466 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.14MB] [CPU: ▼2.47ms] Passed 4 tests

This is a short check of server-side resources used by Responsive Modern Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0624.15 ▼13.32
Dashboard /wp-admin3.48 ▲0.1455.33 ▼3.24
Posts /wp-admin/edit.php3.53 ▲0.1748.30 ▲1.22
Add New Post /wp-admin/post-new.php6.08 ▲0.1993.02 ▲5.46
Media Library /wp-admin/upload.php3.40 ▲0.1737.93 ▲5.86
Add New /wp-admin/post-new.php?post_type=slider3.8552.96
All sliders /wp-admin/edit.php?post_type=slider3.4535.57

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 378 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Modern Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲18313.45 ▼1.318.81 ▲6.8735.51 ▼14.20
Dashboard /wp-admin2,260 ▲805.65 ▼0.0093.47 ▲8.8442.87 ▲0.16
Posts /wp-admin/edit.php2,177 ▲772.05 ▲0.0442.38 ▲3.4737.55 ▲0.76
Add New Post /wp-admin/post-new.php1,578 ▲5023.14 ▼0.04680.78 ▲24.2354.75 ▼0.59
Media Library /wp-admin/upload.php1,468 ▲654.32 ▲0.1696.96 ▼5.1042.91 ▼0.82
Add New /wp-admin/post-new.php?post_type=slider1,8173.7266.0734.01
IDP Slider /wp-admin/responsive-modern-slider.php260.420.0612.29
All sliders /wp-admin/edit.php?post_type=slider1,1481.9732.8928.58
IDP Slider setting /wp-admin/responsive-modern-slider.php?page=idp-slider-lite-options260.420.115.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/responsive-modern-slider/responsive-modern-slider.php
  • 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/responsive-modern-slider/inc/fields/cmb2/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/responsive-modern-slider/inc/fields/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/responsive-modern-slider/inc/fields/cmb2/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/responsive-modern-slider/inc/shortcodes.php:84
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-modern-slider/inc/slider-set.php:63
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/responsive-modern-slider/inc/fields/cmb2/includes/CMB2.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/responsive-modern-slider/inc/fields/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/responsive-modern-slider/inc/fields/cmb2/includes/CMB2_hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-modern-slider/inc/fields/cmb2/includes/helper-functions.php:131
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/responsive-modern-slider/inc/fields/cmb2/includes/types/CMB2_Type_Title.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/responsive-modern-slider.php
    • > Network (severe)
    wp-admin/responsive-modern-slider.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/responsive-modern-slider.php?page=idp-slider-lite-options
    • > Network (severe)
    wp-admin/responsive-modern-slider.php?page=idp-slider-lite-options - 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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: Please take inspiration from this readme.txt

responsive-modern-slider/responsive-modern-slider.php Passed 13 tests

The primary PHP file in "Responsive Modern Slider" version 2.0.1 is used by WordPress to initiate all plugin functionality
94 characters long description:
Wordpress plugin "Slider" with bottom title slide. Styles and script at the Twitter bootstrap.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected47,311 lines of code in 224 files:
LanguageFilesBlank linesComment linesLines of code
PO File12214,51518,73532,812
PHP602,0185,9086,804
CSS161,1651,1744,667
Sass16300251,379
JavaScript93254201,361
SVG100288

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity18.12
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes68
▷ Abstract classes811.76%
▷ Concrete classes6088.24%
▷ Final classes00.00%
Methods535
▷ Static methods8716.26%
▷ Public methods44482.99%
▷ Protected methods8816.45%
▷ Private methods30.56%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/fields/cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
inc/fields/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
inc/fields/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
inc/fields/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
inc/fields/cmb2/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%