Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.21ms] Passed 4 tests
This is a short check of server-side resources used by YouTube Subscribe Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.86 ▼5.62 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.49 ▼2.78 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.20 ▼3.79 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 97.74 ▲2.74 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.48 ▼0.66 |
YouTube Subscribe Bar /wp-admin/options-general.php?page=youtube-subscribe-bar | 3.28 | 32.99 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
youtube-subscribe-bar-settings |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
YouTube Subscribe Bar: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲116 | 13.28 ▼1.12 | 4.35 ▲2.72 | 41.15 ▼7.98 |
Dashboard /wp-admin | 2,230 ▲42 | 4.91 ▼0.02 | 105.08 ▼6.20 | 44.17 ▲0.59 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.03 ▲0.05 | 36.35 ▼3.78 | 34.18 ▼2.55 |
Add New Post /wp-admin/post-new.php | 1,560 ▲18 | 18.25 ▲0.18 | 603.55 ▼32.43 | 58.82 ▲4.31 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.29 ▲0.03 | 93.28 ▼10.52 | 42.09 ▼1.96 |
YouTube Subscribe Bar /wp-admin/options-general.php?page=youtube-subscribe-bar | 1,195 | 2.39 | 43.21 | 30.02 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 fix the following items
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: saved_state in wp-content/plugins/subscribe-bar-youtube/views/admin_view.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/subscribe-bar-youtube/views/admin_view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/subscribe-bar-youtube/views/view.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/subscribe-bar-youtube/views/admin_view_sidebar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/subscribe-bar-youtube/views/activate_welcome_view.php:1
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #2 in subscribe-bar-youtube/assets to your readme.txt
subscribe-bar-youtube/youtube-subscribe-bar.php 85% from 13 tests
The main PHP script in "YouTube Subscribe Bar" version 1.1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("subscribe-bar-youtube.php" instead of "youtube-subscribe-bar.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin817 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 154 | 379 | 812 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 4 | 8.51% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected