Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.62ms] Passed 4 tests
Server-side resources used by Boomtrain Tracker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.57 ▼6.04 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.12 ▼6.79 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 47.89 ▼4.36 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.36 ▼13.27 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 35.30 ▲1.57 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.27 | 32.82 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Boomtrain Tracker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.56 ▼0.77 | 1.71 ▼0.25 | 43.25 ▼1.24 |
Dashboard /wp-admin | 2,251 ▲63 | 5.82 ▲0.70 | 115.33 ▼3.32 | 47.72 ▲2.63 |
Posts /wp-admin/edit.php | 2,142 ▲53 | 2.04 ▲0.05 | 38.51 ▲1.61 | 36.32 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,566 ▲24 | 23.34 ▲4.97 | 646.45 ▲16.09 | 50.95 ▼4.72 |
Media Library /wp-admin/upload.php | 1,441 ▲53 | 4.30 ▲0.07 | 101.21 ▲0.21 | 46.56 ▲1.18 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 934 | 2.09 | 28.29 | 25.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/boomtrain-tracker/inc/admin-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/boomtrain-tracker/boomtrain.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/boomtrain-tracker/lib/class-tgm-plugin-activation.php:161
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
4 plugin tags: reporting, stats, tracking, analytics
boomtrain-tracker/boomtrain.php 85% from 13 tests
The main file in "Boomtrain Tracker" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("boomtrain-tracker.php" instead of "boomtrain.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
Good job! No executable or dangerous file extensions detected1,191 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 389 | 802 | 1,191 |
PHP code Passed 2 tests
A short review of 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.47 |
Average class complexity | 42.80 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 5.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 1 | 2.00% |
▷ Public methods | 44 | 88.00% |
▷ Protected methods | 6 | 12.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin