84% hero-banner-ultimate

Code Review | Hero Banner Ultimate

WordPress plugin Hero Banner Ultimate scored84%from 54 tests.

About plugin

  • Plugin page: hero-banner-ultimate
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2017
  • Latest release: Sep 20, 2023
  • Number of updates: 33
  • Update frequency: every 67.7 days
  • Top authors: wponlinesupport (90.91%)anoopranawat (12.12%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /33,769 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼9.74ms] Passed 4 tests

Analyzing server-side resources used by Hero Banner Ultimate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1850.34 ▼6.72
Dashboard /wp-admin3.47 ▲0.1347.59 ▼19.23
Posts /wp-admin/edit.php3.59 ▲0.2355.75 ▲4.44
Add New Post /wp-admin/post-new.php6.06 ▲0.1794.17 ▼10.84
Media Library /wp-admin/upload.php3.40 ▲0.1739.56 ▼2.17
Hero Banner /wp-admin/edit.php?post_type=hbupro_banner3.4436.06
Add Hero Banner /wp-admin/post-new.php?post_type=hbupro_banner3.7451.43
Upgrade to PRO /wp-admin/edit.php?post_type=hbupro_banner&page=hbu-premium3.3736.31

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Hero Banner Ultimate
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.67 ▲0.091.72 ▼0.1140.29 ▼3.64
Dashboard /wp-admin2,224 ▲475.60 ▲0.0394.59 ▼12.7943.56 ▼5.44
Posts /wp-admin/edit.php2,132 ▲321.94 ▼0.0536.25 ▼2.9431.22 ▼4.73
Add New Post /wp-admin/post-new.php1,553 ▲2723.08 ▼0.06654.11 ▼15.6048.31 ▼20.55
Media Library /wp-admin/upload.php1,426 ▲264.23 ▲0.12103.40 ▼13.6344.98 ▼3.42
Hero Banner /wp-admin/edit.php?post_type=hbupro_banner1,1362.2240.0332.33
Add Hero Banner /wp-admin/post-new.php?post_type=hbupro_banner3,8017.78214.8581.24
Upgrade to PRO /wp-admin/edit.php?post_type=hbupro_banner&page=hbu-premium1,0861.9330.1038.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hero-banner-ultimate/hero-banner-ultimate.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: You can look at the official readme.txt

hero-banner-ultimate/hero-banner-ultimate.php Passed 13 tests

The primary PHP file in "Hero Banner Ultimate" version 1.4 is used by WordPress to initiate all plugin functionality
132 characters long description:
Add hero banner with the help of background image OR background color OR background video. Also work with Gutenberg shortcode block.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,001 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP121922861,119
JavaScript4205139721
CSS33429161

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity20.50
▷ Minimum class complexity6.00
▷ Maximum class complexity35.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected