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.00MB] [CPU: ▼9.34ms] Passed 4 tests
An overview of server-side resources used by GamiPress - LifterLMS Group Leaderboard
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.41 ▼3.24 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.48 ▼18.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.95 ▼0.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.86 ▼15.38 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.51 ▼0.64 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by GamiPress - LifterLMS Group Leaderboard
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.23 ▼1.06 | 2.07 ▲0.34 | 43.77 ▲1.21 |
Dashboard /wp-admin | 2,229 ▲38 | 5.91 ▲1.03 | 112.26 ▼0.26 | 42.97 ▲5.24 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.03 ▲0.02 | 41.57 ▼5.00 | 38.45 ▲2.39 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.09 ▼0.09 | 703.80 ▲72.96 | 58.87 ▲0.84 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.24 ▲0.09 | 100.96 ▼6.76 | 44.20 ▼1.12 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-lifterlms-group-leaderboard/gamipress-lifterlms-group-leaderboard.php:256
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 23 tag instead of maximum 10
gamipress-lifterlms-group-leaderboard/gamipress-lifterlms-group-leaderboard.php Passed 13 tests
The primary PHP file in "GamiPress - LifterLMS Group Leaderboard" version 1.0.8 is used by WordPress to initiate all plugin functionality
100 characters long description:
Add a completely configurable tab on LifterLMS groups with a GamiPress leaderboard of group members.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin562 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 176 | 297 | 441 |
JavaScript | 2 | 29 | 13 | 73 |
CSS | 2 | 8 | 2 | 48 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 9 | |
▷ Static methods | 3 | 33.33% |
▷ Public methods | 5 | 55.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 44.44% |
Functions | 18 | |
▷ Named functions | 18 | 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
There were not PNG files found in your plugin