Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/f13-github-mini-profile-widget/github-profile-widget.php+31
Function create_function() is deprecated
Server metrics [RAM: ▼1.89MB] [CPU: ▼51.41ms] Passed 4 tests
An overview of server-side resources used by GitHub Mini Profile Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 4.85 ▼34.11 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.90 ▼42.90 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 6.44 ▼42.08 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 5.88 ▼86.55 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.13 ▼28.90 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_github_mini_profile_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GitHub Mini Profile Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.24 ▼1.14 | 1.67 ▼0.06 | 48.42 ▲2.07 |
Dashboard /wp-admin | 2,203 ▲15 | 5.86 ▼0.10 | 99.21 ▼16.46 | 39.14 ▼12.54 |
Posts /wp-admin/edit.php | 2,086 ▼0 | 2.06 ▲0.06 | 35.77 ▼0.83 | 33.56 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,542 ▲21 | 18.22 ▼4.89 | 597.35 ▼85.03 | 54.33 ▼10.47 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.19 ▲0.01 | 93.77 ▼4.64 | 42.73 ▼0.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/f13-github-mini-profile-widget/github-profile-widget.php+31
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_github_mini_profile_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/f13-github-mini-profile-widget/github-profile-widget.php:31
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== f13-github-mini-profile-widget ===
) - Screenshots: Screenshot #1 (An example showing the GitHub Mini Profile Widget in use.) image missing
f13-github-mini-profile-widget/github-profile-widget.php 92% from 13 tests
The main PHP file in "GitHub Mini Profile Widget" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("f13-github-mini-profile-widget.php" instead of "github-profile-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin469 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 94 | 291 |
CSS | 1 | 22 | 1 | 139 |
Markdown | 1 | 19 | 0 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 44.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 55.56% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.76MB with 0.62MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 165.76KB | 56.15KB | ▼ 66.13% |
img/banner.png | 616.45KB | 19.25KB | ▼ 96.88% |