Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.20ms] Passed 4 tests
A check of server-side resources used by BadgeOS Suggested Achievements Add-on
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.67 ▼1.84 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.37 ▼15.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.38 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.98 ▼13.42 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.78 ▼2.14 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for BadgeOS Suggested Achievements Add-on
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.31 ▼0.33 | 1.69 ▲0.00 | 44.24 ▲4.84 |
Dashboard /wp-admin | 2,198 ▲24 | 5.59 ▼0.02 | 97.92 ▲11.61 | 63.27 ▲22.09 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.01 | 35.56 ▼1.00 | 39.71 ▲5.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▼13 | 23.44 ▲0.37 | 645.18 ▼21.79 | 48.67 ▼11.91 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▲0.01 | 96.64 ▼16.40 | 42.44 ▼2.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-suggested-achievements-add-on/includes/suggested-ranks-shortcode.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-suggested-achievements-add-on/includes/credly_assertion_page.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-suggested-achievements-add-on/includes/suggested-achievements-shortcode.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-suggested-achievements-add-on/includes/functions.php:289
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/badgeos-suggested-achievements-add-on/badgeos-suggested-achievements.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: There are too many tags (22 tag instead of maximum 10)
badgeos-suggested-achievements-add-on/badgeos-suggested-achievements.php 85% from 13 tests
This is the main PHP file of "BadgeOS Suggested Achievements Add-on" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("badgeos-suggested-achievements-add-on.php" instead of "badgeos-suggested-achievements.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,209 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 287 | 306 | 978 |
JavaScript | 1 | 15 | 8 | 109 |
CSS | 1 | 12 | 4 | 70 |
PO File | 1 | 13 | 13 | 52 |
PHP code Passed 2 tests
This is a short overview 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.43 |
Average class complexity | 19.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icons.png | 1.10KB | 1.07KB | ▼ 2.93% |