78% banner-info-effect

Code Review | Banner Info Effect

WordPress plugin Banner Info Effect scored78%from 54 tests.

About plugin

  • Plugin page: banner-info-effect
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Feb 16, 2016
  • Latest release: Feb 14, 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 /1,062 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.78ms] Passed 4 tests

This is a short check of server-side resources used by Banner Info Effect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1242.49 ▲3.32
Dashboard /wp-admin3.40 ▲0.1047.69 ▼3.25
Posts /wp-admin/edit.php3.45 ▲0.0956.33 ▲4.94
Add New Post /wp-admin/post-new.php5.98 ▲0.1082.31 ▼19.30
Media Library /wp-admin/upload.php3.32 ▲0.0936.10 ▲4.11
Gallery showcases /wp-admin/edit.php?post_type=bie_gallery_slider&page=responsive_gallery-vss-bar-submenu-page3.2931.77
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_bie_slider-category&post_type=bie_gallery_slider3.3234.95
Add New /wp-admin/post-new.php?post_type=bie_gallery_slider3.4450.53
All Images /wp-admin/edit.php?post_type=bie_gallery_slider3.3734.37

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

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

Browser metrics Passed 4 tests

Banner Info Effect: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲23113.77 ▼0.529.72 ▲7.8243.35 ▼2.06
Dashboard /wp-admin2,244 ▲595.06 ▼0.04104.37 ▼16.0338.46 ▼8.86
Posts /wp-admin/edit.php2,127 ▲352.01 ▼0.0532.98 ▼5.5234.02 ▼0.69
Add New Post /wp-admin/post-new.php1,565 ▲2323.18 ▲4.70647.00 ▲3.8862.43 ▲11.20
Media Library /wp-admin/upload.php1,420 ▲324.20 ▲0.0099.68 ▼3.4743.29 ▼0.30
Gallery showcases /wp-admin/edit.php?post_type=bie_gallery_slider&page=responsive_gallery-vss-bar-submenu-page8232.0222.8226.87
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_bie_slider-category&post_type=bie_gallery_slider1,2832.1426.6127.53
Add New /wp-admin/post-new.php?post_type=bie_gallery_slider2,3287.74172.6462.45
All Images /wp-admin/edit.php?post_type=bie_gallery_slider1,1051.9330.5031.16

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/banner-info-effect/bie_gallery_admin_settings_center.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/banner-info-effect/designs/template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/banner-info-effect/banner-info-effect.php:326

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=bie_gallery_slider&page=responsive_gallery-vss-bar-submenu-page
    • > Network (severe)
    wp-content/plugins/banner-info-effect/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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
You can look at the official readme.txt

banner-info-effect/banner-info-effect.php Passed 13 tests

"Banner Info Effect" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
38 characters long description:
A simple Responsive Banner Info Effect

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,833 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript185493762,266
CSS92471211,278
PHP35825289

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

All PNG images should be compressed to minimize bandwidth usage for end users
25 PNG files occupy 0.31MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
themes/dark/images/right-arrow.png22.87KB0.45KB▼ 98.05%
themes/default-big/images/up-arrow.png3.36KB0.40KB▼ 87.99%
themes/default/images/down-arrow.png3.07KB0.29KB▼ 90.67%
themes/light/images/up-arrow.png3.31KB0.45KB▼ 86.45%
themes/light-big/images/left-arrow.png23.34KB0.58KB▼ 97.53%