Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.01ms] Passed 4 tests
A check of server-side resources used by BuddyExtender
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.80 ▼1.05 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.93 ▲0.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.44 ▼1.32 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.54 ▼6.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.35 ▲3.16 |
BuddyExtender /wp-admin/options-general.php?page=bpext_options | 3.00 | 23.40 |
Server storage [IO: ▲2.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 309 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyExtender
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.08 | 1.98 ▲0.29 | 40.39 ▼5.20 |
Dashboard /wp-admin | 2,195 ▲18 | 5.58 ▼0.02 | 86.06 ▲0.99 | 37.91 ▲1.02 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.96 ▼0.01 | 37.12 ▼0.29 | 34.96 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 22.69 ▲4.43 | 673.31 ▼6.84 | 49.51 ▼15.24 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.15 ▼0.08 | 98.91 ▼0.62 | 43.20 ▼5.16 |
BuddyExtender /wp-admin/options-general.php?page=bpext_options | 28 | 0.42 | 0.15 | 3.47 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddyextender/loader.php:394
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddyextender/vendor/CMB2/init.php:75
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/buddyextender/vendor/helpscout/helpscout-dashboard-widget.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/buddyextender/classes/class-admin.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/buddyextender/vendor/helpscout/views/system-info.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=bpext_options
- > Network (severe)
wp-admin/options-general.php?page=bpext_options - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: buddypress, settings
buddyextender/loader.php 77% from 13 tests
The main PHP script in "BuddyExtender" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("buddyextender.php" instead of "loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin44,918 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 119 | 12,731 | 16,335 | 29,151 |
CSS | 10 | 2,025 | 2,049 | 8,517 |
PHP | 21 | 1,244 | 3,052 | 4,649 |
Sass | 11 | 174 | 23 | 1,931 |
JavaScript | 4 | 164 | 121 | 670 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 43.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 332 | |
▷ Static methods | 35 | 10.54% |
▷ Public methods | 272 | 81.93% |
▷ Protected methods | 55 | 16.57% |
▷ Private methods | 5 | 1.51% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 73 | |
▷ Global constants | 13 | 17.81% |
▷ Class constants | 60 | 82.19% |
▷ Public constants | 60 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 compressed PNG files occupy 0.12MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/helpscout/assets/img/pluginize.png | 2.25KB | 2.23KB | ▼ 0.78% |
vendor/CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/images/apppresser.png | 53.71KB | 27.30KB | ▼ 49.17% |