Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.03ms] Passed 4 tests
Analyzing server-side resources used by BH Basic Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.32 ▼3.96 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.78 ▼2.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.63 ▼3.44 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.76 ▼18.68 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.10 ▲0.95 |
BH Slider /wp-admin/edit.php?post_type=bh_slider_post | 3.30 | 34.88 |
Add New /wp-admin/post-new.php?post_type=bh_slider_post | 3.38 | 48.36 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by BH Basic Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲206 | 13.66 ▼0.73 | 7.19 ▲5.27 | 40.86 ▼7.19 |
Dashboard /wp-admin | 2,230 ▲42 | 5.83 ▼0.21 | 106.69 ▲6.22 | 39.04 ▼4.30 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.05 ▲0.03 | 39.30 ▲4.91 | 36.26 ▲2.89 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 23.26 ▲5.82 | 647.46 ▼2.05 | 44.03 ▼7.19 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.27 ▲0.07 | 94.04 ▼1.41 | 43.00 ▲0.49 |
BH Slider /wp-admin/edit.php?post_type=bh_slider_post | 1,080 | 2.00 | 30.47 | 29.41 |
Add New /wp-admin/post-new.php?post_type=bh_slider_post | 2,169 | 7.68 | 186.30 | 67.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bh-basic-slider/register-custom-post-type.php:23
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bh-basic-slider/bh-basic-slider.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bh-basic-slider/bh-basic-slider.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
- Donate link: Please fix this invalid URI: ""
bh-basic-slider/bh-basic-slider.php Passed 13 tests
Analyzing the main PHP file in "BH Basic Slider" version 1.0
112 characters long description:
This plugin made with flexslider. Supported all crosebrowser and Responsive. very nice and helpful slider plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected168 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 23 | 73 |
CSS | 1 | 12 | 21 | 62 |
JavaScript | 1 | 0 | 5 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg_direction_nav.png | 1.82KB | 0.79KB | ▼ 56.38% |
images/icon.png | 3.11KB | 0.48KB | ▼ 84.44% |