Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼3.78ms] Passed 4 tests
An overview of server-side resources used by BitTorrent My Blog
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.24 | 39.41 ▼2.07 |
Dashboard /wp-admin | 3.65 ▲0.30 | 50.71 ▼4.47 |
Posts /wp-admin/edit.php | 3.71 ▲0.30 | 52.46 ▲3.74 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.23 | 96.64 ▼9.14 |
Media Library /wp-admin/upload.php | 3.51 ▲0.23 | 41.78 ▲0.58 |
BitTorrent my Blog /wp-admin/options-general.php?page=wp_bittorrent_settings | 3.45 | 31.77 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
It is recommended to fix the following issues
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/bittorrent/" and "wp-content/uploads/"
- (new file) wp-content/wp-bittorrent-seeds/.empty
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
BitTorrent My Blog: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.29 ▼0.07 | 1.82 ▲0.10 | 42.68 ▲0.07 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▼0.14 | 87.29 ▲0.96 | 41.76 ▼5.35 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.05 | 36.31 ▼3.50 | 40.08 ▲7.70 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.21 ▲2.23 | 693.84 ▲1.18 | 60.00 ▼3.63 |
Media Library /wp-admin/upload.php | 1,395 ▼8 | 4.17 ▲0.05 | 102.14 ▼29.28 | 45.87 ▼3.19 |
BitTorrent my Blog /wp-admin/options-general.php?page=wp_bittorrent_settings | 962 | 1.99 | 21.21 | 33.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_bittorrent_settings
- > Notice in wp-content/plugins/bittorrent/wp-bittorrent.php+475
Trying to access array offset on value of type bool
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_bittorrent_settings
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_bittorrent_settings
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 50% from 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 following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/bittorrent/wp-bittorrent.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/bittorrent/templates/rss-torrent.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: file sharing, torrent, bittorrent, p2p
bittorrent/wp-bittorrent.php 77% from 13 tests
"BitTorrent My Blog" version 0.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 409 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bittorrent.php" instead of "wp-bittorrent.php")
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
Everything looks great! No dangerous files found in this plugin984 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 116 | 429 | 984 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 73.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 3.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 27 | 34.18% |
▷ Public methods | 48 | 60.76% |
▷ Protected methods | 9 | 11.39% |
▷ Private methods | 22 | 27.85% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin