88% banner-introduction-slider

Code Review | Banner Introduction Slider

WordPress plugin Banner Introduction Slider scored 88% from 54 tests.

About plugin

  • Plugin page: banner-introducti...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 5.8.1
  • First release: Feb 20, 2016
  • Latest release: Feb 18, 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

20+ active / 1,881 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼136.33ms] Passed 4 tests

An overview of server-side resources used by Banner Introduction Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.2932.86 ▲8.08
Dashboard /wp-admin3.23 ▲0.1753.84 ▲12.12
Posts /wp-admin/edit.php3.34 ▲0.2346.91 ▼5.59
Add New Post /wp-admin/post-new.php5.60 ▲0.16102.74 ▼547.28
Media Library /wp-admin/upload.php3.17 ▲0.1736.95 ▼0.52
Add New /wp-admin/post-new.php?post_type=banner_intro_slider3.2953.06
Gallery showcases /wp-admin/edit.php?post_type=banner_intro_slider&page=responsive_gallery-bigs-bar-submenu-page3.1532.19
All Images /wp-admin/edit.php?post_type=banner_intro_slider3.2235.05
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_bigs_slider-category&post_type=banner_intro_slider3.1731.82

Server storage [IO: ▲0.32MB] [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: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Banner Introduction Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,870 ▲27416.24 ▲0.2315.88 ▲5.7749.15 ▼2.95
Dashboard /wp-admin3,009 ▲785.92 ▼0.03156.54 ▲1.27123.46 ▲7.99
Posts /wp-admin/edit.php2,784 ▲452.68 ▼0.0167.62 ▼5.1197.04 ▲1.75
Add New Post /wp-admin/post-new.php1,733 ▲5018.36 ▼0.32384.60 ▼8.27140.66 ▲32.75
Media Library /wp-admin/upload.php1,855 ▲485.02 ▲0.04168.82 ▲6.22127.19 ▲0.07
Add New /wp-admin/post-new.php?post_type=banner_intro_slider3,1399.33228.39149.26
Gallery showcases /wp-admin/edit.php?post_type=banner_intro_slider&page=responsive_gallery-bigs-bar-submenu-page1,0632.0660.6376.17
All Images /wp-admin/edit.php?post_type=banner_intro_slider1,4662.6364.0975.54
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_bigs_slider-category&post_type=banner_intro_slider1,7762.5065.1283.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/banner-introduction-slider/designs/template.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=banner_intro_slider&page=responsive_gallery-bigs-bar-submenu-page
    • > Network (severe)
    wp-content/plugins/banner-introduction-slider/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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
You can take inspiration from this readme.txt

banner-introduction-slider/banner-introduction-slider.php Passed 13 tests

Analyzing the main PHP file in "Banner Introduction Slider" version 1.0
46 characters long description:
A simple Responsive Banner Introduction Slider

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
Success! There were no dangerous files found in this plugin5,657 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,3548124,828
PHP4142189631
CSS32518169
PO File14629

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.37
Average class complexity35.00
▷ Minimum class complexity22.00
▷ Maximum class complexity48.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods620.00%
▷ Public methods2893.33%
▷ Protected methods00.00%
▷ Private methods26.67%
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

Often times overlooked, PNG files can occupy unnecessary space in 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/d20.png5.79KB3.60KB▼ 37.83%
css/n03.png2.46KB2.04KB▼ 17.06%