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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.29 | 32.86 ▲8.08 |
Dashboard /wp-admin | 3.23 ▲0.17 | 53.84 ▲12.12 |
Posts /wp-admin/edit.php | 3.34 ▲0.23 | 46.91 ▼5.59 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.16 | 102.74 ▼547.28 |
Media Library /wp-admin/upload.php | 3.17 ▲0.17 | 36.95 ▼0.52 |
Add New /wp-admin/post-new.php?post_type=banner_intro_slider | 3.29 | 53.06 |
Gallery showcases /wp-admin/edit.php?post_type=banner_intro_slider&page=responsive_gallery-bigs-bar-submenu-page | 3.15 | 32.19 |
All Images /wp-admin/edit.php?post_type=banner_intro_slider | 3.22 | 35.05 |
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_bigs_slider-category&post_type=banner_intro_slider | 3.17 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,870 ▲274 | 16.24 ▲0.23 | 15.88 ▲5.77 | 49.15 ▼2.95 |
Dashboard /wp-admin | 3,009 ▲78 | 5.92 ▼0.03 | 156.54 ▲1.27 | 123.46 ▲7.99 |
Posts /wp-admin/edit.php | 2,784 ▲45 | 2.68 ▼0.01 | 67.62 ▼5.11 | 97.04 ▲1.75 |
Add New Post /wp-admin/post-new.php | 1,733 ▲50 | 18.36 ▼0.32 | 384.60 ▼8.27 | 140.66 ▲32.75 |
Media Library /wp-admin/upload.php | 1,855 ▲48 | 5.02 ▲0.04 | 168.82 ▲6.22 | 127.19 ▲0.07 |
Add New /wp-admin/post-new.php?post_type=banner_intro_slider | 3,139 | 9.33 | 228.39 | 149.26 |
Gallery showcases /wp-admin/edit.php?post_type=banner_intro_slider&page=responsive_gallery-bigs-bar-submenu-page | 1,063 | 2.06 | 60.63 | 76.17 |
All Images /wp-admin/edit.php?post_type=banner_intro_slider | 1,466 | 2.63 | 64.09 | 75.54 |
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_bigs_slider-category&post_type=banner_intro_slider | 1,776 | 2.50 | 65.12 | 83.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,354 | 812 | 4,828 |
PHP | 4 | 142 | 189 | 631 |
CSS | 3 | 25 | 18 | 169 |
PO File | 1 | 4 | 6 | 29 |
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 code | 0.37 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 6 | 20.00% |
▷ Public methods | 28 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.67% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/d20.png | 5.79KB | 3.60KB | ▼ 37.83% |
css/n03.png | 2.46KB | 2.04KB | ▼ 17.06% |