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.06MB] [CPU: ▼7.08ms] Passed 4 tests
This is a short check of server-side resources used by myCred Rank Plus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.79 ▼2.14 |
Dashboard /wp-admin | 3.37 ▲0.06 | 46.34 ▼3.09 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 50.21 ▼11.82 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 81.40 ▼11.26 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.35 ▲1.41 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for myCred Rank Plus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.00 | 1.56 ▼0.15 | 44.07 ▼0.47 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.03 | 84.59 ▼14.48 | 39.43 ▼3.19 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.03 | 35.70 ▼2.17 | 32.78 ▼6.59 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.41 ▼4.87 | 645.37 ▼25.40 | 67.57 ▲13.84 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.16 ▲0.00 | 94.11 ▼16.17 | 40.46 ▼9.43 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: ranks, points, gamification, level, rewards
mycred-rank-plus/mycred-rank-plus.php 85% from 13 tests
The main PHP script in "myCred Rank Plus" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 6.2")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
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 plugin2,973 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 757 | 296 | 2,186 |
JavaScript | 3 | 212 | 20 | 544 |
CSS | 2 | 28 | 0 | 132 |
PO File | 1 | 46 | 58 | 111 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 28.89 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 71 | 95.95% |
▷ Protected methods | 3 | 4.05% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 18 | 69.23% |
▷ Anonymous functions | 8 | 30.77% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ranks-addon.png | 65.51KB | 29.21KB | ▼ 55.41% |