78% dual-size-responsive-slider

Code Review | Dual Size Responsive Slider

WordPress plugin Dual Size Responsive Slider scored78%from 54 tests.

About plugin

  • Plugin page: dual-size-respons...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4.0
  • WordPress version: 6.3.1
  • First release: May 29, 2015
  • Latest release: Dec 11, 2015
  • Number of updates: 10
  • Update frequency: every 19.7 days
  • Top authors: Hiroki Kanazawa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,070 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.41ms] Passed 4 tests

Analyzing server-side resources used by Dual Size Responsive Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.17 ▲0.21
Dashboard /wp-admin3.34 ▲0.0447.51 ▼1.49
Posts /wp-admin/edit.php3.39 ▲0.0444.38 ▼2.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.96 ▼13.69
Media Library /wp-admin/upload.php3.26 ▲0.0334.72 ▲2.93
Responsive Slider /wp-admin/options-general.php?page=dual-size-responsive-slider3.3131.32
Add New Slide /wp-admin/post-new.php?post_type=responsive-slider3.3844.94
Add New Set /wp-admin/edit.php?post_type=responsive-slider&page=/wp-admin/post-new.php?post_type=responsive-slider&parent=top3.0423.38
All Slider /wp-admin/edit.php?post_type=responsive-slider3.3129.95

Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 18 new options
New WordPress options
small-slider-width
widget_recent-comments
widget_recent-posts
responsive-slider-change-width
can_compress_scripts
slider-animationSpeed
slider-controlNav
slider-direction
large-slider-height
small-slider-height
...

Browser metrics Passed 4 tests

An overview of browser requirements for Dual Size Responsive Slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲15314.03 ▼0.336.01 ▲4.0937.56 ▼3.70
Dashboard /wp-admin2,244 ▲534.88 ▼0.0297.76 ▼5.5038.52 ▼6.80
Posts /wp-admin/edit.php2,121 ▲322.02 ▲0.0133.76 ▼2.9933.52 ▲1.20
Add New Post /wp-admin/post-new.php1,543 ▲2917.59 ▼0.04684.70 ▲71.2154.18 ▲1.05
Media Library /wp-admin/upload.php1,414 ▲234.18 ▼0.0399.09 ▲4.2141.48 ▼1.42
Responsive Slider /wp-admin/options-general.php?page=dual-size-responsive-slider1,1712.0623.7934.74
Add New Slide /wp-admin/post-new.php?post_type=responsive-slider1,7613.6164.7434.23
Add New Set /wp-admin/edit.php?post_type=responsive-slider&page=/wp-admin/post-new.php?post_type=responsive-slider&parent=top280.440.113.91
All Slider /wp-admin/edit.php?post_type=responsive-slider1,0962.0029.4425.73

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/dual-size-responsive-slider/admin/parent-box.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_responsive_slider_option() in wp-content/plugins/dual-size-responsive-slider/admin/parent-option-meta-box.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dual-size-responsive-slider/dual-size-responsive-slider.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/dual-size-responsive-slider/admin/option-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/dual-size-responsive-slider/admin/slide-metabox.php:3

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)
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=responsive-slider&page=/wp-admin/post-new.php?post_type=responsive-slider&parent=top
    • > Network (severe)
    wp-admin/edit.php?post_type=responsive-slider&page=/wp-admin/post-new.php?post_type=responsive-slider&parent=top - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

dual-size-responsive-slider/dual-size-responsive-slider.php Passed 13 tests

The main PHP script in "Dual Size Responsive Slider" version 1.2.0 is automatically included on every request by WordPress
138 characters long description:
This plugin displays slide show for responsive using FlexSlider2. You can set 2 images its size is different, size for PC and smart phone.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,652 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP7133681,095
JavaScript3134128991
CSS2726374
PO File178121173
SVG10019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity39.50
▷ Minimum class complexity6.00
▷ Maximum class complexity73.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin