73% rw-super-slider

Code Review | RW Super Slider

WordPress plugin RW Super Slider scored73%from 54 tests.

About plugin

  • Plugin page: rw-super-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.4
  • WordPress version: 6.3.1
  • First release: May 12, 2017
  • Latest release: May 12, 2017
  • Number of updates: 10
  • Update frequency: every 1.1 days
  • Top authors: ahmed17 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /831 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.06MB] [CPU: ▲2.19ms] Passed 4 tests

Analyzing server-side resources used by RW Super Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.84 ▼1.64
Dashboard /wp-admin3.36 ▲0.0652.59 ▼1.19
Posts /wp-admin/edit.php3.42 ▲0.0667.38 ▲12.73
Add New Post /wp-admin/post-new.php6.00 ▲0.12101.23 ▲7.69
Media Library /wp-admin/upload.php3.29 ▲0.0742.95 ▲3.89
All RW Slide /wp-admin/edit.php?post_type=rw_slider3.3442.54
New RW Slider /wp-admin/post-new.php?post_type=rw_slider3.1537.29

Server storage [IO: ▲0.68MB] [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: 63 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_rwss_widget
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

RW Super Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.21 ▼0.561.69 ▼0.1548.38 ▲2.37
Dashboard /wp-admin2,237 ▲625.64 ▼0.0794.47 ▼20.5245.15 ▲5.33
Posts /wp-admin/edit.php2,151 ▲482.00 ▲0.0140.03 ▼3.4830.94 ▼6.27
Add New Post /wp-admin/post-new.php1,575 ▲4923.05 ▲0.06649.44 ▼86.2156.76 ▲3.37
Media Library /wp-admin/upload.php1,448 ▲484.20 ▼0.02132.95 ▲18.8448.99 ▲4.17
All RW Slide /wp-admin/edit.php?post_type=rw_slider1,1181.9536.8432.67
New RW Slider /wp-admin/post-new.php?post_type=rw_slider2,2933.8677.6099.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_rwss_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=rw_slider
    • > User notice in wp-includes/functions.php+5905
    Function map_meta_cap was called incorrectly. When checking for the edit_post capability, you must always check it against a specific post. Please see Debugging in WordPress for more information. (This message was added in version 6.1.0.)

SRP 0% 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
Please take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/rw-super-slider/assets/jquery.repeater/test-post-parse.php
    • > /wp-content/plugins/rw-super-slider/assets/jquery.repeater/test/echo.php
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rw-super-slider/admin-editor.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rw-super-slider/cpt.php:53
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rw-super-slider/widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rw-super-slider/front.php:289
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rw-super-slider/rw-super-slider.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rw-super-slider/custom-cmb.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_intermediate_image_sizes() in wp-content/plugins/rw-super-slider/cmb.php:275

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: slider, post slider, post, responsive, owl...

rw-super-slider/rw-super-slider.php Passed 13 tests

The main PHP script in "RW Super Slider" version 1.0 is automatically included on every request by WordPress
82 characters long description:
RW Super Slider provides owl slider for custom post type as well as custom images.

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
Everything looks great! No dangerous files found in this plugin15,386 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript172,9993,01312,884
PHP91271851,345
CSS109177419
HTML7635405
Markdown3670240
JSON30093

PHP code Passed 2 tests

Analyzing 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.48
Average class complexity38.25
▷ Minimum class complexity9.00
▷ Maximum class complexity64.00
Average method complexity8.45
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.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
7 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.84KB1.16KB▼ 37.27%
assets/owl/owl.video.play.png4.86KB2.74KB▼ 43.61%
images/img-thumb.png4.55KB0.57KB▼ 87.48%
images/arrow-right.png0.34KB0.24KB▼ 28.41%
images/arrow-up.png0.25KB0.17KB▼ 33.08%