Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.73ms] Passed 4 tests
An overview of server-side resources used by WordCamp Dashboard Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.25 ▼4.67 |
Dashboard /wp-admin | 3.43 ▲0.12 | 648.76 ▲595.69 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.70 ▲3.73 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.68 ▼6.31 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.13 ▲4.32 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WordCamp Dashboard Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲124 | 13.44 ▼0.96 | 1.71 ▼0.33 | 41.13 ▼1.74 |
Dashboard /wp-admin | 2,262 ▲74 | 5.28 ▲0.40 | 102.23 ▼18.55 | 40.08 ▼4.88 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.06 | 34.06 ▼2.76 | 35.93 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▲9 | 23.30 ▼0.05 | 664.71 ▼16.42 | 63.14 ▲8.56 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.22 ▲0.00 | 96.01 ▼0.46 | 42.66 ▼3.98 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wc-dashboard-widget ===
)
wc-dashboard-widget/wordcamp-dashboard-widget.php 85% from 13 tests
The entry point to "WordCamp Dashboard Widget" version 0.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-dashboard-widget.php" instead of "wordcamp-dashboard-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected537 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 98 | 207 |
JavaScript | 2 | 1 | 5 | 171 |
Markdown | 3 | 43 | 0 | 93 |
CSS | 2 | 12 | 0 | 66 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/asterisk_yellow.png | 0.73KB | 0.85KB | 0.00% |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |