Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/b26-slider/b26slider.php+218
Trying to access array offset on value of type null
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.25ms] Passed 4 tests
An overview of server-side resources used by B26 Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.56 ▼4.12 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.75 ▼5.34 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.64 ▼0.24 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 80.85 ▼15.94 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.98 ▼3.61 |
B26 Slider /wp-admin/edit.php?post_type=b26slider_post | 3.32 | 35.12 |
Category /wp-admin/edit-tags.php?taxonomy=bitm_post_cat&post_type=b26slider_post | 3.27 | 29.73 |
Add New /wp-admin/post-new.php?post_type=b26slider_post | 3.36 | 48.96 |
Settings /wp-admin/edit.php?post_type=b26slider_post&page=b26slider-settings | 3.24 | 30.84 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_b26_sliderc |
Browser metrics Passed 4 tests
This is an overview of browser requirements for B26 Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲167 | 14.08 ▼0.29 | 9.27 ▲7.12 | 38.82 ▼8.55 |
Dashboard /wp-admin | 2,241 ▲50 | 4.84 ▼0.06 | 104.12 ▼6.47 | 40.37 ▼3.08 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▼0.03 | 40.68 ▲1.09 | 37.12 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,571 ▲43 | 18.17 ▼5.07 | 650.85 ▼39.61 | 54.14 ▼7.85 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.21 ▲0.04 | 94.25 ▼7.93 | 42.98 ▼2.72 |
B26 Slider /wp-admin/edit.php?post_type=b26slider_post | 1,105 | 2.00 | 31.44 | 30.52 |
Category /wp-admin/edit-tags.php?taxonomy=bitm_post_cat&post_type=b26slider_post | 1,294 | 2.14 | 26.71 | 25.41 |
Add New /wp-admin/post-new.php?post_type=b26slider_post | 1,777 | 3.67 | 66.25 | 34.34 |
Settings /wp-admin/edit.php?post_type=b26slider_post&page=b26slider-settings | 944 | 1.68 | 25.28 | 28.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_b26_sliderc
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/b26-slider/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/b26-slider/b26slider.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: Plugin contributors field is missing
b26-slider/b26slider.php 85% from 13 tests
"B26 Slider" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("b26-slider.php" instead of "b26slider.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin415 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 96 | 60 | 299 |
CSS | 1 | 3 | 4 | 115 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin