Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/buddypress-group-email-subscription/bp-activity-subscription.php+40
Use of undefined constant BP_VERSION - assumed 'BP_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.97ms] Passed 4 tests
An overview of server-side resources used by BuddyPress Group Email Subscription
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.24 ▼14.62 |
Dashboard /wp-admin | 3.38 ▲0.07 | 45.93 ▼6.31 |
Posts /wp-admin/edit.php | 3.50 ▲0.13 | 50.20 ▼1.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 97.00 ▼5.77 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.67 ▼0.70 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
ass_digest_time |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
ass_weekly_digest |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress Group Email Subscription
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.16 ▼0.19 | 1.70 ▼0.02 | 40.60 ▼1.96 |
Dashboard /wp-admin | 2,192 ▲15 | 5.58 ▼0.00 | 91.32 ▼11.42 | 39.61 ▼2.32 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.98 ▲0.01 | 38.20 ▲0.60 | 35.61 ▲2.23 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.22 ▼4.84 | 609.07 ▼18.95 | 57.31 ▼13.79 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▼0.19 | 95.03 ▼6.53 | 40.87 ▼0.41 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- ass_weekly_digest
- db_upgraded
- ass_digest_time
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 126× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buddypress-group-email-subscription/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buddypress-group-email-subscription/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buddypress-group-email-subscription/vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php:6
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buddypress-group-email-subscription/vendor/composer/installers/src/Composer/Installers/GravInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buddypress-group-email-subscription/vendor/composer/installers/src/Composer/Installers/StarbugInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buddypress-group-email-subscription/vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buddypress-group-email-subscription/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'BPGES_Async_Request' not found in wp-content/plugins/buddypress-group-email-subscription/classes/class-bpges-async-request-send-queue.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function bpges_subscription_levels() in wp-content/plugins/buddypress-group-email-subscription/templates/bpges/subscription-options-admin.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/buddypress-group-email-subscription/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (14 tag instead of maximum 10)
buddypress-group-email-subscription/bp-activity-subscription.php 92% from 13 tests
The principal PHP file in "BuddyPress Group Email Subscription" v. 4.2.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("buddypress-group-email-subscription.php" instead of "bp-activity-subscription.php")
Code Analysis Passed 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 plugin16,480 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 16 | 2,467 | 3,468 | 7,997 |
PHP | 149 | 2,108 | 3,588 | 7,457 |
JSON | 4 | 0 | 0 | 358 |
CSS | 1 | 45 | 4 | 209 |
YAML | 4 | 36 | 7 | 156 |
Markdown | 2 | 68 | 0 | 123 |
JavaScript | 1 | 25 | 12 | 90 |
Bourne Shell | 1 | 15 | 4 | 59 |
XML | 2 | 0 | 0 | 31 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 3.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 122 | |
▷ Abstract classes | 4 | 3.28% |
▷ Concrete classes | 118 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 230 | |
▷ Static methods | 30 | 13.04% |
▷ Public methods | 145 | 63.04% |
▷ Protected methods | 73 | 31.74% |
▷ Private methods | 12 | 5.22% |
Functions | 182 | |
▷ Named functions | 167 | 91.76% |
▷ Anonymous functions | 15 | 8.24% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/email.png | 0.31KB | 0.22KB | ▼ 27.30% |
css/emailwide.png | 0.47KB | 0.39KB | ▼ 17.19% |