72% ashique-reel-slider

Code Review | Ashique Reel Slider

WordPress plugin Ashique Reel Slider scored72%from 54 tests.

About plugin

  • Plugin page: ashique-reel-slider
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2022
  • Latest release: Nov 11, 2022
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: ashique12009 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /187 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼14.72ms] Passed 4 tests

A check of server-side resources used by Ashique Reel Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.47 ▼4.18
Dashboard /wp-admin3.32 ▲0.0250.09 ▼1.84
Posts /wp-admin/edit.php3.37 ▲0.0248.14 ▼9.93
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.58 ▼42.92
Media Library /wp-admin/upload.php3.24 ▲0.0237.68 ▲2.65
Reel slider /wp-admin/options-general.php?page=wp-reel-slider-settings3.1931.12

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Ashique Reel Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12213.53 ▼1.068.05 ▲6.4942.12 ▲0.43
Dashboard /wp-admin2,203 ▲295.55 ▼0.0389.63 ▼0.2137.15 ▼3.44
Posts /wp-admin/edit.php2,108 ▲51.99 ▲0.0339.35 ▼0.4934.04 ▼4.61
Add New Post /wp-admin/post-new.php1,533 ▲723.19 ▼0.24686.02 ▲72.6656.80 ▲8.97
Media Library /wp-admin/upload.php1,408 ▲84.16 ▼0.21100.35 ▼16.3745.04 ▲0.34
Reel slider /wp-admin/options-general.php?page=wp-reel-slider-settings8722.0429.7030.07

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-reel-slider-settings
    • > Notice in wp-content/plugins/ashique-reel-slider/admin/class-wp-reel-slider-admin.php+126
    Undefined index: view

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
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ashique-reel-slider/admin/partials/wp-reel-slider-admin-display.php
    • > /wp-content/plugins/ashique-reel-slider/public/partials/wp-reel-slider-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Trait 'Wp_Reel_Slider_Helper_Trait' not found in wp-content/plugins/ashique-reel-slider/admin/class-wp-reel-slider-admin.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: slider, wp-reel-slider, reel-slider, post-slider

ashique-reel-slider/wp-reel-slider.php 85% from 13 tests

"Ashique Reel Slider" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ashique-reel-slider.php" instead of "wp-reel-slider.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin745 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3551147359
PHP13151560358
CSS221028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity3.12
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods310.00%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.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
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
public/images/default-image-thumbnail.png1.70KB0.76KB▼ 55.57%
public/images/default-image.png2.49KB0.80KB▼ 67.92%