Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.35ms] Passed 4 tests
Server-side resources used by Trailhead & Salesforce Certifications Scorecard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 33.52 ▼3.32 |
Dashboard /wp-admin | 3.34 ▼0.01 | 52.60 ▼5.15 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.14 ▼2.61 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.68 ▼17.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.02 ▼3.02 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_sf_trailhead_scorecard_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Trailhead & Salesforce Certifications Scorecard
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 13.95 ▼0.42 | 1.75 ▲0.00 | 41.74 ▼0.75 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▼0.04 | 87.55 ▼0.96 | 38.55 ▼3.23 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.02 | 35.79 ▼1.54 | 32.82 ▼1.54 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.24 ▲0.26 | 665.88 ▼3.90 | 53.34 ▼0.14 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.15 ▼0.05 | 96.22 ▼21.48 | 41.92 ▼6.70 |
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
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_sf_trailhead_scorecard_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/scorecard-widget-for-salesforce-trailhead/scorecard-widget-for-salesforce-trailhead.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Screenshots: Please add descriptions for these screenshots #3, #4 in scorecard-widget-for-salesforce-trailhead/assets to your readme.txt
scorecard-widget-for-salesforce-trailhead/scorecard-widget-for-salesforce-trailhead.php 92% from 13 tests
The primary PHP file in "Trailhead & Salesforce Certifications Scorecard" version 2.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 246 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin71 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 19 | 71 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin