Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.04MB] [CPU: ▼36.70ms] Passed 4 tests
This is a short check of server-side resources used by Bp Force Profile
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 17.95 ▼21.61 |
Dashboard /wp-admin | 2.99 ▼0.31 | 23.72 ▼22.74 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 22.89 ▼27.31 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 23.86 ▼75.12 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 21.27 ▼14.74 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Bp Force Profile: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,456 ▼279 | 13.20 ▼0.97 | 0.53 ▼1.38 | 17.56 ▼27.96 |
Dashboard /wp-admin | 2,206 ▲21 | 5.83 ▲0.95 | 107.68 ▼3.55 | 37.82 ▼6.46 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.01 | 40.13 ▲2.40 | 33.05 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.28 ▲0.08 | 663.43 ▼5.07 | 64.10 ▲10.81 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.00 | 95.05 ▼11.96 | 42.99 ▼1.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/bp-force-profile/bp-fp-loader.php+47
Trying to get property 'loggedin_user' of non-object
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- 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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/bp-force-profile/bp-fp-loader.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-force-profile/bp-fp-loader.php:145
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bp-force-profile/bp-fp-loader.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-force-profile/bp-fp-admin.php:2
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The front end), #2 (The admin setup page)
bp-force-profile/bp-fp-loader.php 92% from 13 tests
The main PHP script in "Bp Force Profile" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-force-profile.php" instead of "bp-fp-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
There were no executable files found in this plugin513 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 4 | 56 | 60 | 264 |
PHP | 2 | 35 | 32 | 168 |
CSS | 1 | 13 | 0 | 81 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 63.33KB | 21.88KB | ▼ 65.44% |
screenshot-1.png | 70.70KB | 20.56KB | ▼ 70.93% |