Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.86ms] Passed 4 tests
Server-side resources used by KaTracker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.62 ▼6.36 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.49 ▼7.58 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 51.44 ▼1.89 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 92.98 ▼3.61 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.93 ▲3.76 |
Categories /wp-admin/edit-tags.php?taxonomy=torrent-category&post_type=attachment | 3.45 | 40.68 |
Torrents /wp-admin/upload.php?page=admin-torrents | 3.14 | 30.22 |
KaTracker /wp-admin/options-general.php?page=katracker | 3.35 | 31.95 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 36 new files
Database: 1 new table, 27 new options
New tables |
---|
wp_tracker_peers |
New WordPress options |
---|
katracker_subdomain |
katracker_max-peers |
katracker_tracked-access |
katracker_default-announce |
widget_theysaidso_widget |
katracker_validate-hash |
db_upgraded |
katracker_min-interval |
katracker_external-ip |
katracker_reset-comment |
... |
Browser metrics Passed 4 tests
KaTracker: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 13.64 ▼0.72 | 1.86 ▼0.16 | 44.46 ▲0.50 |
Dashboard /wp-admin | 2,227 ▲36 | 5.87 ▲0.95 | 98.95 ▼8.84 | 41.24 ▼1.85 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.02 ▼0.01 | 37.85 ▼4.25 | 34.26 ▼6.27 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 23.70 ▲0.24 | 636.91 ▼65.40 | 52.10 ▲1.45 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.25 ▼0.00 | 101.99 ▼7.24 | 41.92 ▼4.25 |
Categories /wp-admin/edit-tags.php?taxonomy=torrent-category&post_type=attachment | 1,291 | 2.15 | 26.70 | 27.30 |
Torrents /wp-admin/upload.php?page=admin-torrents | 1,432 | 4.36 | 80.99 | 38.23 |
KaTracker /wp-admin/options-general.php?page=katracker | 876 | 2.20 | 23.73 | 34.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_katracker_widget
- can_compress_scripts
- theysaidso_admin_options
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 no errors were found, this is by no means 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 take a closer look at the following
- 22× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/katracker/admin/section-9-reset.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/katracker/admin/section-2-tracker.php:8
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/katracker/constants.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/katracker/torrent/torrent-media.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_katracker_option() in wp-content/plugins/katracker/tracker/katracker.core.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_torrents() in wp-content/plugins/katracker/widget/katracker-widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/katracker/uninstall.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/katracker/widget/widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/katracker/admin/section-3-torrent.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_all_actions() in wp-content/plugins/katracker/tracker/tracker-feed.php:4
- > PHP Fatal error
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 93% 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
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #3, #5 in katracker/assets to your readme.txt
katracker/katracker.php 92% from 13 tests
"KaTracker" version 1.1.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages/")
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
Success! There were no dangerous files found in this plugin2,466 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 427 | 928 | 2,366 |
JavaScript | 3 | 19 | 24 | 61 |
CSS | 2 | 9 | 0 | 39 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 52.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 3.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 66 | |
▷ Static methods | 38 | 57.58% |
▷ Public methods | 44 | 66.67% |
▷ Protected methods | 9 | 13.64% |
▷ Private methods | 13 | 19.70% |
Functions | 104 | |
▷ Named functions | 34 | 32.69% |
▷ Anonymous functions | 70 | 67.31% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
torrent/media-torrent.png | 0.26KB | 0.25KB | ▼ 4.91% |
admin/SettingsLogo.png | 3.88KB | 3.62KB | ▼ 6.64% |