Benchmarks
Plugin footprint 40% 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
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/bx-slider-by-trs/backend/classes/class-bootstrap.php+42
Constant BACKEND_DIR already defined
Server metrics [RAM: ▼1.70MB] [CPU: ▼54.78ms] Passed 4 tests
A check of server-side resources used by BX Slider by TRS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.16 | 5.81 ▼32.44 |
Dashboard /wp-admin | 2.32 ▼1.03 | 6.61 ▼51.56 |
Posts /wp-admin/edit.php | 2.32 ▼1.04 | 6.81 ▼42.37 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.57 | 7.49 ▼92.75 |
Media Library /wp-admin/upload.php | 2.32 ▼0.91 | 6.79 ▼26.06 |
About /wp-admin/edit.php?post_type=trs-bx-slider&page=trs-bx-slider-about | 2.32 | 6.12 |
All Sliders /wp-admin/edit.php?post_type=trs-bx-slider | 2.32 | 7.01 |
Add New Slider /wp-admin/post-new.php?post_type=trs-bx-slider | 2.32 | 6.13 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by BX Slider by TRS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,083 ▲337 | 15.13 ▲0.76 | 6.09 ▲4.54 | 47.17 ▲7.40 |
Dashboard /wp-admin | 2,371 ▲180 | 6.43 ▲0.58 | 121.71 ▲18.41 | 36.89 ▼6.10 |
Posts /wp-admin/edit.php | 2,284 ▲195 | 3.35 ▲1.33 | 51.12 ▲14.75 | 31.19 ▼5.13 |
Add New Post /wp-admin/post-new.php | 1,557 ▲24 | 23.18 ▲0.14 | 621.36 ▼22.79 | 36.68 ▼12.34 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.15 ▼0.10 | 79.55 ▼18.57 | 39.23 ▼2.26 |
About /wp-admin/edit.php?post_type=trs-bx-slider&page=trs-bx-slider-about | 1,004 | 3.02 | 40.81 | 57.13 |
All Sliders /wp-admin/edit.php?post_type=trs-bx-slider | 1,266 | 3.52 | 46.86 | 26.55 |
Add New Slider /wp-admin/post-new.php?post_type=trs-bx-slider | 2,128 | 3.63 | 63.32 | 82.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/bx-slider-by-trs/backend/classes/class-bootstrap.php+42
Constant BACKEND_DIR already defined
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=trs-bx-slider
- > Notice in wp-content/plugins/bx-slider-by-trs/backend/classes/class-bootstrap.php+42
Constant BACKEND_DIR already defined
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=trs-bx-slider
- > Notice in wp-content/plugins/bx-slider-by-trs/backend/classes/class-bootstrap.php+43
Constant BACKEND_URL already defined
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=trs-bx-slider
- > Notice in wp-content/plugins/bx-slider-by-trs/backend/classes/class-bootstrap.php+44
Constant BACKEND_ASSET_DIR already defined
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=trs-bx-slider
- > Notice in wp-content/plugins/bx-slider-by-trs/backend/classes/class-bootstrap.php+45
Constant BACKEND_ASSET_URL already defined
- 9 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=trs-bx-slider
- > Notice in wp-content/plugins/bx-slider-by-trs/backend/classes/class-bootstrap.php+46
Constant BACKEND_INCLUDES_DIR already defined
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid url: "#"
- Screenshots: These screenshots need descriptions #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in bx-slider-by-trs/assets to your readme.txt
bx-slider-by-trs/bootstrap.php 85% from 13 tests
The main file in "BX Slider by TRS" v. 2.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("bx-slider-by-trs.php" instead of "bootstrap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,144 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 274 | 98 | 780 |
JavaScript | 6 | 56 | 96 | 283 |
CSS | 3 | 17 | 0 | 81 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 10 | 19.61% |
▷ Public methods | 44 | 86.27% |
▷ Protected methods | 4 | 7.84% |
▷ Private methods | 3 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
backend/assets/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
frontend/assets/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
frontend/assets/images/ext-not-supported.png | 23.99KB | 11.36KB | ▼ 52.62% |