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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.79ms] Passed 4 tests
An overview of server-side resources used by GamiPress - BuddyPress Group Leaderboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.44 ▲1.81 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.64 ▼4.90 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.20 ▼3.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.53 ▼17.62 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.09 ▼1.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
GamiPress - BuddyPress Group Leaderboard: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.25 ▼1.13 | 1.75 ▼0.51 | 41.46 ▼0.25 |
Dashboard /wp-admin | 2,229 ▲44 | 4.85 ▼0.97 | 112.80 ▲8.74 | 41.34 ▲0.81 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.06 ▲0.06 | 41.12 ▼0.10 | 36.36 ▼3.77 |
Add New Post /wp-admin/post-new.php | 1,551 ▲18 | 23.26 ▲0.10 | 682.95 ▲81.02 | 52.39 ▼2.86 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.17 ▼0.05 | 96.98 ▼0.37 | 41.58 ▼0.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-buddypress-group-leaderboard/gamipress-buddypress-group-leaderboard.php:271
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
gamipress-buddypress-group-leaderboard/gamipress-buddypress-group-leaderboard.php Passed 13 tests
The primary PHP file in "GamiPress - BuddyPress Group Leaderboard" version 1.1.4 is used by WordPress to initiate all plugin functionality
101 characters long description:
Add a completely configurable tab on BuddyPress groups with a GamiPress leaderboard of group members.
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
There were no executable files found in this plugin597 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 194 | 324 | 476 |
JavaScript | 2 | 29 | 13 | 73 |
CSS | 2 | 8 | 2 | 48 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 14 | |
▷ Static methods | 3 | 21.43% |
▷ Public methods | 9 | 64.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 35.71% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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