78% banner-hover-list

Code Review | Banner Hover List

WordPress plugin Banner Hover List scored78%from 54 tests.

About plugin

  • Plugin page: banner-hover-list
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Jan 30, 2016
  • Latest release: Jan 30, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: module.express (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /927 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.60ms] Passed 4 tests

An overview of server-side resources used by Banner Hover List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1143.06 ▲3.75
Dashboard /wp-admin3.40 ▲0.0950.66 ▲1.98
Posts /wp-admin/edit.php3.45 ▲0.0946.21 ▼4.40
Add New Post /wp-admin/post-new.php5.99 ▲0.1085.96 ▼21.14
Media Library /wp-admin/upload.php3.33 ▲0.0938.53 ▲1.17
Gallery showcases /wp-admin/edit.php?post_type=sp_banner_hover_list&page=responsive_gallery-bhl-bar-submenu-page3.2931.96
All Images /wp-admin/edit.php?post_type=sp_banner_hover_list3.3740.92
Add New /wp-admin/post-new.php?post_type=sp_banner_hover_list3.4553.05
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_bhl_slider-category&post_type=sp_banner_hover_list3.3235.62

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

Browser metrics Passed 4 tests

Banner Hover List: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲15813.59 ▼0.9610.90 ▲8.9842.77 ▼4.90
Dashboard /wp-admin2,233 ▲535.63 ▼0.0497.11 ▲9.4242.03 ▼1.87
Posts /wp-admin/edit.php2,135 ▲352.03 ▲0.0035.68 ▼0.9536.33 ▼2.66
Add New Post /wp-admin/post-new.php1,558 ▲2123.00 ▲4.95671.18 ▲6.7456.17 ▼8.01
Media Library /wp-admin/upload.php1,435 ▲444.18 ▲0.0199.56 ▼5.0642.67 ▼2.56
Gallery showcases /wp-admin/edit.php?post_type=sp_banner_hover_list&page=responsive_gallery-bhl-bar-submenu-page8132.0024.3024.91
All Images /wp-admin/edit.php?post_type=sp_banner_hover_list1,1192.1032.2630.58
Add New /wp-admin/post-new.php?post_type=sp_banner_hover_list2,3397.59173.0665.02
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_bhl_slider-category&post_type=sp_banner_hover_list1,2892.1227.3029.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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 fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/banner-hover-list/designs/design-1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/banner-hover-list/bhl_gallery_admin_settings_center.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/banner-hover-list/banner-hover-list.php:419

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=sp_banner_hover_list&page=responsive_gallery-bhl-bar-submenu-page
    • > Network (severe)
    wp-content/plugins/banner-hover-list/images/design-1.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
Please take inspiration from this readme.txt

banner-hover-list/banner-hover-list.php Passed 13 tests

The main PHP file in "Banner Hover List" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
37 characters long description:
A simple Responsive Banner Hover List

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin5,220 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31,3398044,736
PHP37032362
CSS22016122

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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
css/d17.png5.38KB3.32KB▼ 38.24%
images/d17.png5.38KB3.32KB▼ 38.24%