Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼7.70ms] Passed 4 tests
This is a short check of server-side resources used by BuddyPress Security Check
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 45.54 ▲8.85 |
Dashboard /wp-admin | 3.45 ▲0.10 | 47.63 ▼14.54 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 43.59 ▼3.23 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.48 ▼20.40 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.79 ▲7.39 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 158 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BuddyPress Security Check
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.36 ▲0.12 | 1.69 ▼0.22 | 43.60 ▲2.75 |
Dashboard /wp-admin | 2,198 ▲17 | 5.63 ▼0.06 | 92.83 ▼7.13 | 42.17 ▼1.69 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.00 | 34.22 ▼2.88 | 33.58 ▼5.82 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.07 ▼0.13 | 679.06 ▲18.50 | 58.72 ▲7.38 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.21 ▲0.06 | 95.59 ▼4.50 | 44.16 ▼0.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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 | 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
- 98× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/bp-security-check/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4
- > PHP Fatal error
Uncaught Error: Interface 'ReCaptcha\\RequestMethod' not found in wp-content/plugins/bp-security-check/vendor/google/recaptcha/src/ReCaptcha/RequestMethod/CurlPost.php:37
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/bp-security-check/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/bp-security-check/vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php:26
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/bp-security-check/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/bp-security-check/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/bp-security-check/vendor/google/recaptcha/tests/ReCaptcha/RequestMethod/SocketPostTest.php:31
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/bp-security-check/vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/bp-security-check/vendor/composer/installers/src/Composer/Installers/Installer.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Shea\\BP_Security_Check\\add_action() in wp-content/plugins/bp-security-check/bp-security-check.php:42
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: registration, math, security, buddypress, anti-spam
bp-security-check/bp-security-check.php Passed 13 tests
Analyzing the main PHP file in "BuddyPress Security Check" version 3.2.2
129 characters long description:
Help combat spam registrations by forcing the user to answer a simple math sum while registering for your BuddyPress-powered site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin4,927 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 754 | 1,649 | 3,904 |
PO File | 12 | 117 | 169 | 393 |
JSON | 4 | 0 | 0 | 297 |
Markdown | 3 | 64 | 0 | 293 |
XML | 2 | 2 | 0 | 40 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 2.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 107 | |
▷ Abstract classes | 3 | 2.80% |
▷ Concrete classes | 104 | 97.20% |
▷ Final classes | 0 | 0.00% |
Methods | 221 | |
▷ Static methods | 5 | 2.26% |
▷ Public methods | 184 | 83.26% |
▷ Protected methods | 31 | 14.03% |
▷ Private methods | 6 | 2.71% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin