Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.79ms] Passed 4 tests
A check of server-side resources used by BadgeOS BadgeStack Add-on
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.70 ▼5.74 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.42 ▼0.52 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.33 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.12 ▼9.98 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.91 ▲1.37 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BadgeOS BadgeStack Add-on
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.13 ▼1.45 | 4.23 ▲2.24 | 41.54 ▼3.62 |
Dashboard /wp-admin | 2,200 ▲9 | 5.84 ▲0.96 | 102.89 ▼3.25 | 38.41 ▼3.68 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.01 | 41.18 ▲4.89 | 35.35 ▲0.92 |
Add New Post /wp-admin/post-new.php | 1,519 ▼14 | 23.29 ▲0.34 | 668.15 ▼19.40 | 70.94 ▲16.80 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.25 ▲0.08 | 94.25 ▼4.06 | 43.04 ▼1.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/badgeos-badgestack-add-on/badgeos-badgestack.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
badgeos-badgestack-add-on/badgeos-badgestack.php 92% from 13 tests
The primary PHP file in "BadgeOS BadgeStack Add-on" version 1.0.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("badgeos-badgestack-add-on.php" instead of "badgeos-badgestack.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,511 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 1 | 328 | 459 | 978 |
PHP | 1 | 62 | 140 | 533 |
PHP code Passed 2 tests
An short overview of 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.46 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 5 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 50.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
14 PNG files occupy 0.40MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/badge-badgeexplorer-pink.png | 21.31KB | 7.73KB | ▼ 63.73% |
images/community-badge-activist.png | 19.82KB | 6.95KB | ▼ 64.93% |
images/community-badge-activelearner.png | 20.28KB | 7.21KB | ▼ 64.44% |
images/community-badge-commentator.png | 19.29KB | 7.00KB | ▼ 63.74% |
images/badge-credly-member-grey.png | 19.09KB | 7.03KB | ▼ 63.17% |