Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.32MB] [CPU: ▼1.42ms] Passed 4 tests
This is a short check of server-side resources used by HW Create Widget Content Template
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 39.94 ▼2.88 |
Dashboard /wp-admin | 3.68 ▲0.34 | 47.90 ▼6.42 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 46.71 ▲0.24 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 112.12 ▲21.91 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 39.59 ▲3.40 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by HW Create Widget Content Template
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.36 ▼1.02 | 1.79 ▼0.29 | 43.10 ▲2.90 |
Dashboard /wp-admin | 2,206 ▲18 | 5.80 ▲0.90 | 99.48 ▲0.90 | 41.65 ▼3.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.06 | 34.27 ▼8.33 | 34.46 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.25 ▲0.78 | 607.85 ▼71.88 | 49.23 ▼1.41 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.27 ▲0.05 | 97.20 ▲1.14 | 41.95 ▲0.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× 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/hw-create-widget-content-template/functions.php:39
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/hw-create-widget-content-template/lib/admin-page-framework.min.php:7466
- > 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 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
Please fix the following attributes:
- Plugin Name: You should set the name of your plugin on the first line (
=== hw-create-widget-content-template ===
)
hw-create-widget-content-template/hw-skin.php 92% from 13 tests
The main PHP file in "HW Create Widget Content Template" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hw-create-widget-content-template.php" instead of "hw-skin.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .chm - Compiled HTML Help File in Firefox, IE, Safari
- ☣ wp-content/plugins/hw-create-widget-content-template/document.chm
- .chm - Compiled HTML Help File in Firefox, IE, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 275 | 2,969 | 8,348 |
JavaScript | 3 | 16 | 59 | 40 |
CSS | 2 | 3 | 2 | 37 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 16.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 343.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 176 | |
▷ Abstract classes | 73 | 41.48% |
▷ Concrete classes | 103 | 58.52% |
▷ Final classes | 3 | 2.91% |
Methods | 1,023 | |
▷ Static methods | 152 | 14.86% |
▷ Public methods | 642 | 62.76% |
▷ Protected methods | 232 | 22.68% |
▷ Private methods | 149 | 14.57% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 20 | 100.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
There were not PNG files found in your plugin