89% hero-banner-slider

Code Review | Hero Banner Slider

WordPress plugin Hero Banner Slider scored89%from 54 tests.

About plugin

  • Plugin page: hero-banner-slider
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2020
  • Latest release: Feb 25, 2020
  • Number of updates: 2
  • Update frequency: every 9.0 days
  • Top authors: rohitgupta3 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,561 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.01MB] [CPU: ▼6.69ms] Passed 4 tests

Server-side resources used by Hero Banner Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.09 ▼0.18
Dashboard /wp-admin3.31 ▼0.0461.64 ▼15.17
Posts /wp-admin/edit.php3.36 ▲0.0052.47 ▼2.43
Add New Post /wp-admin/post-new.php5.88 ▼0.00101.43 ▼5.86
Media Library /wp-admin/upload.php3.23 ▲0.0034.14 ▼3.30

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Hero Banner Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲9013.39 ▼1.058.42 ▲6.2844.51 ▲0.64
Dashboard /wp-admin2,195 ▲215.57 ▼0.0598.25 ▲7.6643.30 ▼0.70
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0033.72 ▼6.0736.98 ▲2.97
Add New Post /wp-admin/post-new.php6,370 ▲4,96129.03 ▲11.04966.54 ▲353.5539.47 ▼12.56
Media Library /wp-admin/upload.php1,400 ▼04.22 ▼0.05103.13 ▼7.4946.74 ▼4.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add a description for screenshot #6 in hero-banner-slider/assets to your readme.txt
  • Screenshots: Screenshot #4 (Change Details Alignment and Overlay options, you can changes bxslider options ( autoplay, speed, etc ) - Screenshot 4) image missing
The official readme.txt might help

hero-banner-slider/gutenberg-block-hero-banner.php 85% from 13 tests

"Hero Banner Slider" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 259 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("hero-banner-slider.php" instead of "gutenberg-block-hero-banner.php")

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 detected30,170 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript46,0404,95425,227
JSON2004,695
CSS34413228
PHP151920

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/hero-banner-slider-logo.png4.31KB2.37KB▼ 45.04%
assets/images/controls.png2.74KB1.42KB▼ 48.29%