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
Install script ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.86ms] Passed 4 tests
This is a short check of server-side resources used by Award Role Add-on for BadgeOS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.83 ▼1.55 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.74 ▼17.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.76 ▼3.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.29 ▼17.92 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.87 ▼4.67 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Award Role Add-on for BadgeOS
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.34 ▼0.01 | 1.61 ▼0.21 | 41.23 ▲0.77 |
Dashboard /wp-admin | 2,198 ▲27 | 5.63 ▲0.09 | 85.61 ▼2.93 | 38.16 ▼1.21 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▲0.00 | 34.91 ▼6.04 | 36.86 ▲1.18 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.30 ▼4.73 | 602.46 ▼77.82 | 76.76 ▲10.00 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▼0.09 | 97.47 ▼5.57 | 50.20 ▲5.65 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/award-role-add-on-for-badgeos/includes/actions-filters.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/award-role-add-on-for-badgeos/badgeos-award-role.php:37
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/user.php): failed to open stream: No such file or directory in wp-content/plugins/award-role-add-on-for-badgeos/includes/actions-filters.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/user.php' (include_path='.:/usr/share/php') in wp-content/plugins/award-role-add-on-for-badgeos/includes/actions-filters.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: You are using too many tags: 19 tag instead of maximum 10
award-role-add-on-for-badgeos/badgeos-award-role.php 85% from 13 tests
Analyzing the main PHP file in "Award Role Add-on for BadgeOS" version 1.1.1
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("award-role-add-on-for-badgeos.php" instead of "badgeos-award-role.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 plugin79 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 63 | 69 |
JSON | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin