83% awesome-carousel-slider

Code Review | Awesome Carousel Slider

WordPress plugin Awesome Carousel Slider scored83%from 54 tests.

About plugin

  • Plugin page: awesome-carousel-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 1, 2018
  • Latest release: Oct 4, 2019
  • Number of updates: 7
  • Update frequency: every 48.1 days
  • Top authors: raihancse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /707 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.09MB] [CPU: ▼8.52ms] Passed 4 tests

A check of server-side resources used by Awesome Carousel Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.75 ▼0.02
Dashboard /wp-admin3.45 ▲0.1149.55 ▼16.03
Posts /wp-admin/edit.php3.50 ▲0.1549.24 ▼0.01
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.37 ▼18.03
Media Library /wp-admin/upload.php3.31 ▲0.0841.71 ▲5.03
Add New /wp-admin/post-new.php?post_type=carousels3.5961.22
All Slides /wp-admin/edit.php?post_type=carousels3.4235.78

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 119 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_widget_carousel_slider
db_upgraded
theysaidso_admin_options
widget_recent-comments
carousel_slider_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Awesome Carousel Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.72 ▲0.371.78 ▲0.1344.47 ▲3.92
Dashboard /wp-admin2,222 ▲445.60 ▼0.0585.20 ▼16.4738.19 ▼3.76
Posts /wp-admin/edit.php2,127 ▲272.02 ▲0.0238.15 ▼1.6536.39 ▼1.11
Add New Post /wp-admin/post-new.php1,549 ▲2123.07 ▼0.21698.23 ▲96.4057.67 ▲9.80
Media Library /wp-admin/upload.php1,427 ▲274.18 ▲0.00102.94 ▲1.0944.24 ▼1.56
Add New /wp-admin/post-new.php?post_type=carousels4,7785.74223.6357.87
All Slides /wp-admin/edit.php?post_type=carousels1,1521.9236.7331.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • carousel_slider_version
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_widget_carousel_slider
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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)
There are user-side issues you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=carousels
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=carousels
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=carousels
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=carousels
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Screenshots: Screenshot #6 (This is the six screen shot) image not found
  • Plugin Name: You should set the name of your plugin on the first line ( === awesome-carousel-slider === )
You can take inspiration from this readme.txt

awesome-carousel-slider/carousel-slider.php 85% from 13 tests

The main file in "Awesome Carousel Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("awesome-carousel-slider.php" instead of "carousel-slider.php")

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
Good job! No executable or dangerous file extensions detected18,161 lines of code in 102 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript232,2511,6789,430
PHP448201,0214,865
Sass294201212,991
XML160733
SVG300140
CSS2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.19
▷ Minimum class complexity2.00
▷ Maximum class complexity63.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes16.25%
Methods139
▷ Static methods1812.95%
▷ Public methods10172.66%
▷ Protected methods00.00%
▷ Private methods3827.34%
Functions19
▷ Named functions1263.16%
▷ Anonymous functions736.84%
Constants10
▷ Global constants10100.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
No PNG images were found in this plugin