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.03MB] [CPU: ▼8.88ms] Passed 4 tests
An overview of server-side resources used by BP Profile Shortcodes Extra
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 36.27 ▼2.82 |
Dashboard /wp-admin | 3.34 ▲0.04 | 47.57 ▲0.10 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.22 ▼8.86 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.90 ▼23.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.95 ▲3.65 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for BP Profile Shortcodes Extra
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.44 ▲0.08 | 1.63 ▼0.13 | 41.73 ▼7.26 |
Dashboard /wp-admin | 2,215 ▲27 | 5.01 ▲0.08 | 101.22 ▲0.28 | 39.67 ▼2.69 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.02 ▲0.01 | 33.28 ▼9.37 | 33.91 ▼2.96 |
Add New Post /wp-admin/post-new.php | 6,358 ▲4,824 | 28.39 ▲5.25 | 929.86 ▲308.39 | 40.28 ▼9.26 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.26 ▲0.03 | 94.81 ▼5.93 | 40.76 ▼0.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_activity_post_form_action() in wp-content/plugins/bp-profile-shortcodes-extra/templates/legacy/activity/post-form.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/bp-profile-shortcodes-extra/lib/class-wp-rest-shortcodes-controller-bpps.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_activity_post_form_action() in wp-content/plugins/bp-profile-shortcodes-extra/templates/nouveau/activity/post-form.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Donate link: Invalid URI ("paypal.me/GeorgeChaplin")
bp-profile-shortcodes-extra/loader.php 77% from 13 tests
"BP Profile Shortcodes Extra" version 2.5.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-profile-shortcodes-extra.php" instead of "loader.php")
Code Analysis 97% from 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 plugin13,095 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 7,242 |
JavaScript | 26 | 1,211 | 1,091 | 5,296 |
PHP | 7 | 86 | 143 | 351 |
PO File | 1 | 61 | 94 | 158 |
CSS | 1 | 2 | 0 | 26 |
Markdown | 1 | 6 | 0 | 19 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 123)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 125.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 364.00 |
Average method complexity | 8.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 123.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 1 | 2.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bppsc.png | 2.36KB | 0.72KB | ▼ 69.42% |