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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.19ms] Passed 4 tests
This is a short check of server-side resources used by BrokeBot
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 24.99 ▼14.25 |
Dashboard /wp-admin | 3.40 ▲0.06 | 48.31 ▼9.03 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 46.54 ▲2.95 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 97.05 ▲11.87 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.74 ▲3.57 |
Brokebot Options /wp-admin/admin.php?page=brokebot-settings | 3.36 | 31.76 |
Brokebot Support /wp-admin/admin.php?page=brokebot-support | 3.29 | 30.55 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for BrokeBot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.82 ▼0.53 | 1.86 ▲0.04 | 36.70 ▼6.26 |
Dashboard /wp-admin | 2,244 ▲55 | 5.18 ▲0.19 | 104.46 ▼2.26 | 38.28 ▼0.40 |
Posts /wp-admin/edit.php | 2,696 ▲607 | 2.69 ▲0.69 | 69.14 ▲32.21 | 34.98 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 18.41 ▼0.31 | 611.71 ▼18.34 | 57.54 ▼14.71 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.46 ▲0.26 | 95.07 ▼3.29 | 40.66 ▼2.05 |
Brokebot Options /wp-admin/admin.php?page=brokebot-settings | 1,226 | 2.49 | 39.29 | 31.23 |
Brokebot Support /wp-admin/admin.php?page=brokebot-support | 886 | 1.93 | 25.08 | 22.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=brokebot-settings
- > Notice in wp-content/plugins/brokebot/admin/partials/brokebot-admin-settings.php+55
Trying to access array offset on value of type bool
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=brokebot-settings
- > Warning in wp-content/plugins/brokebot/admin/partials/brokebot-admin-settings.php+175
in_array() expects parameter 2 to be array, null given
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/brokebot/public/partials/brokebot-public-display.php
- > /wp-content/plugins/brokebot/admin/partials/brokebot-admin-support.php
- > /wp-content/plugins/brokebot/admin/partials/brokebot-admin-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/brokebot/admin/partials/brokebot-admin-settings.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== brokebot ===
) - Donate link: Invalid URI found ("getbrokebot.com")
brokebot/brokebot.php Passed 13 tests
The main PHP file in "BrokeBot" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
74 characters long description:
A simple ActionBot to increase conversions from key pages of your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin11,666 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 65 | 2,640 | 761 | 9,872 |
CSS | 6 | 90 | 8 | 1,169 |
PHP | 14 | 205 | 611 | 536 |
SVG | 3 | 6 | 2 | 89 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected