Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/badgearoo/includes/actions.php+88
Undefined index: broo_show_user_assignment_modal
Server metrics [RAM: ▲1.21MB] [CPU: ▼132.40ms] Passed 4 tests
An overview of server-side resources used by Badgearoo
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.93 | 43.08 ▲5.62 |
Dashboard /wp-admin | 4.39 ▲1.33 | 59.86 ▲18.49 |
Posts /wp-admin/edit.php | 4.50 ▲1.40 | 58.91 ▲11.88 |
Add New Post /wp-admin/post-new.php | 6.71 ▲1.28 | 95.60 ▼552.81 |
Media Library /wp-admin/upload.php | 4.31 ▲1.31 | 38.18 ▲5.70 |
Settings /wp-admin/edit.php?post_type=badge&page=broo_settings | 4.31 | 42.56 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=badge | 4.33 | 49.95 |
About /wp-admin/edit.php?post_type=badge&page=broo_about | 4.31 | 47.30 |
Assignments /wp-admin/edit.php?post_type=badge&page=broo_assignments | 4.33 | 46.53 |
Badges /wp-admin/edit.php?post_type=badge | 4.39 | 45.88 |
Add New /wp-admin/post-new.php?post_type=badge | 4.43 | 60.87 |
Conditions /wp-admin/edit.php?post_type=badge&page=broo_conditions | 4.36 | 51.93 |
Tools /wp-admin/edit.php?post_type=badge&page=broo_tools | 4.32 | 44.49 |
/wp-admin/index.php?page=broo_about | 4.31 | 42.00 |
Server storage [IO: ▲1.15MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: 7 new tables, 7 new options
New tables |
---|
wp_broo_user_assignment |
wp_broo_condition |
wp_broo_condition_step |
wp_broo_user_action_meta |
wp_broo_condition_step_meta |
wp_broo_action |
wp_broo_user_action |
New WordPress options |
---|
category_children |
broo_actions_enabled |
broo_bp_settings |
widget_broo_recent_assignments |
broo_email_settings |
broo_general_settings |
widget_broo_user_badges |
Browser metrics Passed 4 tests
Badgearoo: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,119 ▲523 | 18.54 ▲3.04 | 11.52 ▲3.14 | 49.70 ▼0.85 |
Dashboard /wp-admin | 3,262 ▲328 | 7.54 ▲1.57 | 175.92 ▲32.80 | 111.79 ▲0.81 |
Posts /wp-admin/edit.php | 3,084 ▲345 | 4.05 ▲1.35 | 91.52 ▲27.03 | 91.31 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,746 ▲246 | 19.01 ▲0.59 | 373.98 ▲19.73 | 105.65 ▼5.51 |
Media Library /wp-admin/upload.php | 1,930 ▲123 | 5.05 ▲0.01 | 117.70 ▼38.89 | 117.70 ▼1.49 |
Settings /wp-admin/edit.php?post_type=badge&page=broo_settings | 1,533 | 4.05 | 83.59 | 70.70 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=badge | 2,270 | 4.44 | 88.54 | 88.82 |
About /wp-admin/edit.php?post_type=badge&page=broo_about | 1,827 | 4.05 | 88.14 | 135.35 |
Assignments /wp-admin/edit.php?post_type=badge&page=broo_assignments | 1,737 | 4.43 | 79.23 | 83.13 |
Badges /wp-admin/edit.php?post_type=badge | 1,795 | 4.44 | 89.13 | 79.77 |
Add New /wp-admin/post-new.php?post_type=badge | 3,715 | 9.21 | 239.03 | 157.61 |
Conditions /wp-admin/edit.php?post_type=badge&page=broo_conditions | 1,952 | 4.29 | 92.10 | 76.93 |
Tools /wp-admin/edit.php?post_type=badge&page=broo_tools | 1,572 | 4.19 | 84.32 | 76.39 |
/wp-admin/index.php?page=broo_about | 1,824 | 4.05 | 84.95 | 115.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 7 tables in the database
- wp_broo_condition_step
- wp_broo_user_action
- wp_broo_condition_step_meta
- wp_broo_user_assignment
- wp_broo_action
- wp_broo_condition
- wp_broo_user_action_meta
- This plugin did not uninstall successfully, leaving 7 options in the database
- broo_general_settings
- widget_broo_recent_assignments
- broo_actions_enabled
- category_children
- broo_bp_settings
- broo_email_settings
- widget_broo_user_badges
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/badgearoo/includes/admin/class-assignments-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/badgearoo/includes/admin/class-assignments-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/badgearoo/includes/admin/class-assignments-table.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
badgearoo/badgearoo.php 77% from 13 tests
"Badgearoo" version 1.0.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 147 characters long)
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
- Domain Path: The domain path must begin with a forward slash character ("/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 plugin6,818 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 1,813 | 1,581 | 6,039 |
JavaScript | 3 | 177 | 104 | 505 |
CSS | 2 | 41 | 5 | 264 |
XML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 4.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 6 | 5.88% |
▷ Public methods | 102 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 142 | |
▷ Named functions | 142 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 39 | |
▷ Global constants | 38 | 97.44% |
▷ Class constants | 1 | 2.56% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.77MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-9.PNG | 115.89KB | 35.93KB | ▼ 68.99% |
assets/screenshot-5.png | 71.89KB | 25.82KB | ▼ 64.08% |
assets/img/about-theme-icon.PNG | 5.70KB | 3.17KB | ▼ 44.30% |
assets/screenshot-7.png | 63.76KB | 30.96KB | ▼ 51.44% |
assets/img/about-theme-light.PNG | 2.46KB | 1.59KB | ▼ 35.38% |