Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.88ms] Passed 4 tests
This is a short check of server-side resources used by Bookertools Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 36.30 ▼4.07 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.55 ▼0.80 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 53.23 ▲5.76 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 83.25 ▼11.70 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 37.30 ▲5.07 |
Booker Tools /wp-admin/options-general.php?page=bookertools-settings | 3.33 | 31.68 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_bookertools_widget |
Browser metrics Passed 4 tests
Bookertools Integration: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.70 ▼0.73 | 1.67 ▼0.36 | 40.72 ▼2.43 |
Dashboard /wp-admin | 2,207 ▲21 | 5.83 ▲0.82 | 104.08 ▼17.74 | 40.26 ▼4.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.01 | 43.63 ▲8.00 | 34.97 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.26 ▲0.09 | 685.20 ▲1.45 | 56.13 ▼5.07 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.25 ▲0.06 | 110.10 ▲10.02 | 47.12 ▲2.66 |
Booker Tools /wp-admin/options-general.php?page=bookertools-settings | 818 | 2.06 | 24.33 | 28.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_bookertools_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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 | 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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bookertools-shows/bookertools-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bookertools-shows/bookertools-shortcode.php:39
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bookertools-shows/bookertools-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bookertools-shows/bookertools-stylesheet.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: bookertools
bookertools-shows/bookertools-integration.php 85% from 13 tests
The main PHP script in "Bookertools Integration" version 1.5.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bookertools-shows.php" instead of "bookertools-integration.php")
- Description: The description should be shorter than 140 characters (currently 178 characters long)
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
There were no executable files found in this plugin813 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 135 | 110 | 777 |
CSS | 2 | 24 | 0 | 36 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 12.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 93.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.90% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin