68% slide-banners

Code Review | Slide Banners

WordPress plugin Slide Banners scored68%from 54 tests.

About plugin

  • Plugin page: slide-banners
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Jan 12, 2016
  • Latest release: Feb 20, 2016
  • Number of updates: 8
  • Update frequency: every 5.0 days
  • Top authors: melodicmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /5,850 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼6.17ms] Passed 4 tests

A check of server-side resources used by Slide Banners
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3644.02 ▲1.23
Dashboard /wp-admin3.68 ▲0.3351.82 ▼11.43
Posts /wp-admin/edit.php3.79 ▲0.4454.96 ▲5.63
Add New Post /wp-admin/post-new.php6.26 ▲0.3788.15 ▼13.59
Media Library /wp-admin/upload.php3.60 ▲0.3736.84 ▼0.90
/wp-admin/admin.php?page=slide_preview_banner3.5536.76
Add New Slidebanner /wp-admin/admin.php?page=new_slide_banner3.5935.31
Daily Stats /wp-admin/admin.php?page=slide_daily_stat3.5532.39
Slide Banners /wp-admin/admin.php?page=slide_top3.5736.42

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 58 new files
Database: 1 new table, 6 new options
New tables
wp_daily_stats
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Slide Banners
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲4614.26 ▲0.042.72 ▲0.8940.67 ▼0.84
Dashboard /wp-admin2,221 ▲445.55 ▼0.2489.46 ▼3.5481.13 ▲38.37
Posts /wp-admin/edit.php2,145 ▲392.00 ▼0.0037.07 ▼0.0434.03 ▼0.19
Add New Post /wp-admin/post-new.php1,558 ▲3223.31 ▲0.06662.91 ▲21.6566.63 ▲12.73
Media Library /wp-admin/upload.php1,441 ▲414.07 ▼0.10102.28 ▼4.8577.01 ▲31.39
/wp-admin/admin.php?page=slide_preview_banner8182.0324.8425.06
Add New Slidebanner /wp-admin/admin.php?page=new_slide_banner1,7913.2143.7066.81
Daily Stats /wp-admin/admin.php?page=slide_daily_stat8702.0026.9628.03
Slide Banners /wp-admin/admin.php?page=slide_top8672.0024.3432.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_daily_stats
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+501
    Undefined index: bannername
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+502
    Undefined index: bannertype
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+503
    Undefined index: useclosebutton
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+504
    Undefined index: closebuttonposition
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+518
    Undefined index: mainbackup
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+506
    Undefined index: slideposition
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+507
    Undefined index: slidedirection
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+508
    Undefined index: bannerdisappear
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+509
    Undefined index: useopenbutton
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+510
    Undefined index: addextra
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+511
    Undefined index: extracode
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+512
    Undefined index: openbannerfirst
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+513
    Undefined index: pagescroll
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+514
    Undefined index: firstnewwindow
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+515
    Undefined index: secondposition
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+516
    Undefined index: slidedirect
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+517
    Undefined index: mainnewwindow
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+519
    Undefined index: htmbannertype
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+520
    Undefined index: mainhtmfile
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+522
    Undefined index: mainhtml
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+524
    Undefined index: mainhtmlwidth
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+525
    Undefined index: mainhtmlheight
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+526
    Undefined index: mainflashname
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+527
    Undefined index: bannerid
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+528
    Undefined index: mainname
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+529
    Undefined index: mainurl
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+530
    Undefined index: autoopen
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+531
    Undefined index: autoclose
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+532
    Undefined index: autoopentime
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+533
    Undefined index: autoclosetime
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+534
    Undefined index: onceperday
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+535
    Undefined index: firstname
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+536
    Undefined index: firsturl
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+537
    Undefined index: closename
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+562
    Undefined variable: first
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+574
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+574
    Undefined variable: close
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+575
    Undefined index: closecss
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+576
    Undefined index: opencss
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+648
    Undefined variable: objectwidth
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+647
    Undefined variable: objectheight
    • > GET request to /wp-admin/admin.php?page=new_slide_banner
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=new_slide_banner
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=slide_daily_stat
    • > Notice in wp-content/plugins/slide-banners/slideoptions.php+712
    Trying to access array offset on value of type bool

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=slide_preview_banner
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=slide_preview_banner 160:13 Uncaught SyntaxError: Unexpected token ','
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=slide_top
    • > Network (severe)
    wp-content/plugins/slide-banners/images/wp_slide_buy_em.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: slider ads, slider banners, slide ads, slider banner, slider...

slide-banners/slidebanner.php 92% from 13 tests

Analyzing the main PHP file in "Slide Banners" version 1.3
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("slide-banners.php" instead of "slidebanner.php")

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
Good job! No executable or dangerous file extensions detected5,131 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PO File92,2494,0662,783
PHP2288351,525
JavaScript345022823

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions38
▷ Named functions38100.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
25 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/open_bottom_left.png1.20KB0.68KB▼ 43.11%
images/close4.png1.33KB1.27KB▼ 4.63%
images/html.png5.29KB2.74KB▼ 48.23%
images/open_top.png1.17KB0.67KB▼ 42.76%
images/logo.png5.67KB3.53KB▼ 37.63%