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.01MB] [CPU: ▼3.42ms] Passed 4 tests
This is a short check of server-side resources used by BP Classic
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.15 ▼7.29 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.48 ▼3.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.44 ▼1.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.63 ▼1.29 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.23 ▲0.39 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 141 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by BP Classic
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.34 ▲0.08 | 1.78 ▲0.01 | 43.35 ▼0.82 |
Dashboard /wp-admin | 2,195 ▲21 | 5.60 ▲0.02 | 95.35 ▼3.65 | 43.92 ▲1.65 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.06 | 40.14 ▼1.88 | 36.70 ▲0.14 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.70 ▲0.55 | 660.07 ▼27.26 | 55.16 ▼7.18 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.23 ▼0.02 | 94.87 ▼5.49 | 42.12 ▲0.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 69× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-classic/themes/bp-default/members/single/member-header.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-classic/themes/bp-default/activity/comment.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-classic/themes/bp-default/searchform.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bp-classic/themes/bp-default/members/single/settings/profile.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bp-classic/themes/bp-default/index.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bp-classic/themes/bp-default/members/index.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-classic/themes/bp-default/members/single/messages/notices-loop.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bp-classic/themes/bp-default/groups/create.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/bp-classic/themes/bp-default/links.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bp-classic/themes/bp-default/members/single/messages/single.php:3
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: backcompat, buddypress
bp-classic/class-bp-classic.php 92% from 13 tests
This is the main PHP file of "BP Classic" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bp-classic.php" instead of "class-bp-classic.php")
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 plugin11,937 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 106 | 3,004 | 2,817 | 6,727 |
CSS | 10 | 174 | 357 | 3,712 |
JavaScript | 4 | 335 | 122 | 1,337 |
Sass | 1 | 58 | 4 | 161 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.54 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 79 | |
▷ Static methods | 6 | 7.59% |
▷ Public methods | 75 | 94.94% |
▷ Protected methods | 3 | 3.80% |
▷ Private methods | 1 | 1.27% |
Functions | 121 | |
▷ Named functions | 121 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
6 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/bp-default/_inc/images/45pc_black.png | 0.08KB | 0.09KB | 0.00% |
themes/bp-default/_inc/images/white-grad.png | 0.08KB | 0.18KB | 0.00% |
themes/bp-default/_inc/images/60pc_black.png | 0.07KB | 0.09KB | 0.00% |
themes/bp-default/screenshot.png | 35.22KB | 13.49KB | ▼ 61.71% |
themes/bp-default/_inc/images/rss.png | 0.62KB | 0.70KB | 0.00% |