Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.89ms] Passed 4 tests
A check of server-side resources used by BP Rewrites
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.02 ▼0.55 |
Dashboard /wp-admin | 3.33 ▲0.02 | 52.92 ▼2.72 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.70 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.15 ▼5.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.69 ▲2.96 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 85 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for BP Rewrites
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 13.36 ▼0.88 | 1.71 ▼0.09 | 43.08 ▼2.23 |
Dashboard /wp-admin | 2,230 ▲42 | 4.85 ▼0.02 | 102.88 ▼4.58 | 42.66 ▼2.12 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.03 ▼0.03 | 36.30 ▼1.10 | 35.28 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.32 ▲5.87 | 692.82 ▲21.73 | 62.04 ▲7.43 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.12 ▼0.08 | 111.95 ▲2.22 | 49.71 ▲6.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'BP_Notifications_Component' not found in wp-content/plugins/bp-rewrites/src/bp-notifications/classes/class-notifications-component.php:16
- > PHP Fatal error
Uncaught Error: Class 'BP_Groups_Component' not found in wp-content/plugins/bp-rewrites/src/bp-groups/classes/class-groups-component.php:16
- > PHP Fatal error
Uncaught Error: Class 'BP_Friends_Component' not found in wp-content/plugins/bp-rewrites/src/bp-friends/classes/class-friends-component.php:16
- > PHP Fatal error
Uncaught Error: Class 'BBP_Forums_Component' not found in wp-content/plugins/bp-rewrites/src/bp-plugins/bbpress/class-forums-component.php:16
- > PHP Fatal error
Uncaught Error: Class 'BP_Messages_Component' not found in wp-content/plugins/bp-rewrites/src/bp-messages/classes/class-messages-component.php:16
- > PHP Fatal error
Uncaught Error: Class 'BBP_Forums_Group_Extension' not found in wp-content/plugins/bp-rewrites/src/bp-plugins/bbpress/class-forums-group-extension.php:16
- > PHP Fatal error
Uncaught Error: Class 'BP_XProfile_Component' not found in wp-content/plugins/bp-rewrites/src/bp-xprofile/classes/class-xprofile-component.php:16
- > PHP Fatal error
Uncaught Error: Class 'BP_Activity_Component' not found in wp-content/plugins/bp-rewrites/src/bp-activity/classes/class-activity-component.php:16
- > PHP Fatal error
Uncaught Error: Class 'BP_Settings_Component' not found in wp-content/plugins/bp-rewrites/src/bp-settings/classes/class-settings-component.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function BP\\Rewrites\\add_action() in wp-content/plugins/bp-rewrites/src/bp-xprofile/screens/settings-profile.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: buddypress, rewrites, beta, feature-as-a-plugin
bp-rewrites/class-bp-rewrites.php 92% from 13 tests
This is the main PHP file of "BP Rewrites" version 1.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("bp-rewrites.php" instead of "class-bp-rewrites.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin7,643 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 1,894 | 4,756 | 7,354 |
PO File | 1 | 86 | 104 | 263 |
JavaScript | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 27.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 147.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 157 | |
▷ Static methods | 8 | 5.10% |
▷ Public methods | 138 | 87.90% |
▷ Protected methods | 15 | 9.55% |
▷ Private methods | 4 | 2.55% |
Functions | 248 | |
▷ Named functions | 244 | 98.39% |
▷ Anonymous functions | 4 | 1.61% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected