Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.29ms] Passed 4 tests
Server-side resources used by BP Premiums for BuddyPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 48.97 ▲9.02 |
Dashboard /wp-admin | 3.47 ▲0.16 | 45.24 ▼5.07 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 50.84 ▲0.74 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 93.19 ▼17.84 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 42.10 ▲9.48 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by BP Premiums for BuddyPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.09 | 1.78 ▲0.16 | 42.64 ▲5.33 |
Dashboard /wp-admin | 2,206 ▲21 | 5.81 ▼0.09 | 101.68 ▲0.42 | 39.49 ▼2.71 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.04 | 39.90 ▲6.36 | 35.70 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.27 ▲0.04 | 677.27 ▼6.03 | 55.24 ▲6.51 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.19 ▼0.00 | 107.76 ▲11.58 | 47.14 ▲5.34 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-premiums/modules/group-access.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/bp-premiums/bp-premiums.php:351
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: groups, buddypress, social network, buddypress groups, buddypress money...
bp-premiums/bp-premiums.php Passed 13 tests
"BP Premiums for BuddyPress" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
118 characters long description:
BP Premiums is an addon for monetizing social networks. Charge users a premium for accessing features on your network.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected857 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 97 | 623 | 674 |
JavaScript | 1 | 41 | 145 | 174 |
XML | 1 | 2 | 4 | 9 |
PHP code Passed 2 tests
Analyzing 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.46 |
Average class complexity | 14.83 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 47 | |
▷ Static methods | 4 | 8.51% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 1 | 2.13% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin