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.06MB] [CPU: ▼6.62ms] Passed 4 tests
Server-side resources used by myCred for BuddyPress Compliments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.00 ▼0.90 |
Dashboard /wp-admin | 3.38 ▲0.03 | 48.17 ▼14.53 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 43.77 ▼3.01 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.16 ▼8.02 |
Media Library /wp-admin/upload.php | 3.30 ▲0.06 | 37.10 ▲2.52 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by myCred for BuddyPress Compliments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.31 ▲0.03 | 1.76 ▲0.10 | 43.89 ▼0.39 |
Dashboard /wp-admin | 2,195 ▲18 | 5.66 ▲0.04 | 86.86 ▼6.09 | 38.21 ▼8.96 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.02 | 37.85 ▲0.27 | 32.60 ▼6.70 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.41 ▲0.01 | 641.44 ▼46.86 | 56.31 ▼8.40 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.15 ▼0.03 | 97.77 ▲0.04 | 43.03 ▼2.03 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mycred-for-buddypress-compliments/mycred-buddypress-compliments.php:89
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2 in mycred-for-buddypress-compliments/assets to your readme.txt
mycred-for-buddypress-compliments/mycred-buddypress-compliments.php 77% from 13 tests
The main PHP script in "myCred for BuddyPress Compliments" version 1.1.4 is automatically included on every request by WordPress
It is important to fix the following:
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 4.8")
- Main file name: The principal plugin file should be the same as the plugin slug ("mycred-for-buddypress-compliments.php" instead of "mycred-buddypress-compliments.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
Everything looks great! No dangerous files found in this plugin314 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 66 | 124 | 212 |
PO File | 2 | 26 | 30 | 102 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin