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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.11ms] Passed 4 tests
This is a short check of server-side resources used by BadgeOS Submissions & Nominations
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.63 ▼4.38 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.25 ▼4.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.83 ▼3.09 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.70 ▼20.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.40 ▲4.13 |
Server storage [IO: ▲1.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 66 new files
Database: no new tables, 8 new options
New WordPress options |
---|
badgeos_admin_tools |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
badgeos_settings |
Browser metrics Passed 4 tests
Checking browser requirements for BadgeOS Submissions & Nominations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲59 | 13.24 ▼1.02 | 1.59 ▼0.61 | 41.43 ▼13.59 |
Dashboard /wp-admin | 2,209 ▲21 | 5.88 ▼0.00 | 98.59 ▼20.84 | 41.85 ▼7.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.05 | 36.25 ▼6.73 | 32.84 ▼4.32 |
Add New Post /wp-admin/post-new.php | 1,533 ▲2 | 22.98 ▼0.09 | 628.78 ▲3.77 | 74.89 ▲12.35 |
Media Library /wp-admin/upload.php | 1,391 ▲12 | 4.20 ▲0.01 | 117.78 ▼9.38 | 57.13 ▼43.58 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- badgeos_settings
- can_compress_scripts
- widget_theysaidso_widget
- badgeos_admin_tools
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/shortcodes/badgeos_nomination.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/integrations.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/shortcodes/badgeos_nominations.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/metaboxes.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/submission-actions.php:129
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/shortcodes/badgeos_submission.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/functions.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/badgeos-nomination-submission-email-tool.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/shortcodes/badgeos_submissions.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badgeos-nomination-submission-add-on/includes/post_types.php:94
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% 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
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
badgeos-nomination-submission-add-on/badgeos-nomination-submission-addon.php 85% from 13 tests
The entry point to "BadgeOS Submissions & Nominations" version 1.2.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("badgeos-nomination-submission-add-on.php" instead of "badgeos-nomination-submission-addon.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin12,954 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 8,689 |
PHP | 14 | 855 | 987 | 3,023 |
JavaScript | 9 | 160 | 537 | 785 |
CSS | 6 | 33 | 101 | 288 |
Sass | 5 | 21 | 1 | 124 |
Markdown | 3 | 17 | 0 | 45 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 19 | |
▷ Static methods | 3 | 15.79% |
▷ Public methods | 16 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.79% |
Functions | 82 | |
▷ Named functions | 82 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-7.png | 52.52KB | 18.59KB | ▼ 64.60% |
assets/screenshot-6.png | 10.28KB | 5.00KB | ▼ 51.37% |
assets/screenshot-15.png | 11.62KB | 4.91KB | ▼ 57.79% |
assets/screenshot-9.png | 12.30KB | 5.61KB | ▼ 54.39% |
assets/screenshot-14.png | 13.20KB | 5.64KB | ▼ 57.26% |