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
Installer ran successfully
Server metrics [RAM: ▼0.05MB] [CPU: ▼10.77ms] Passed 4 tests
Server-side resources used by ProfPanda Custom Dashboard Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.75 ▼5.33 |
Dashboard /wp-admin | 3.06 ▼0.24 | 25.17 ▼21.63 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 41.70 ▼11.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.78 ▼4.86 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 31.84 ▼0.68 |
ProfPanda Custom Dashboard Widget /wp-admin/options-general.php?page=pcdw | 3.19 | 30.38 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for ProfPanda Custom Dashboard Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲109 | 13.34 ▼1.02 | 4.15 ▲2.37 | 40.30 ▼2.38 |
Dashboard /wp-admin | 2,258 ▲67 | 5.84 ▲0.96 | 101.23 ▼10.53 | 42.91 ▲1.79 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▼0.01 | 37.37 ▼3.29 | 36.25 ▼0.67 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 17.86 ▲0.06 | 611.32 ▼12.59 | 54.04 ▲8.01 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▼0.06 | 95.00 ▼2.40 | 39.22 ▼5.01 |
ProfPanda Custom Dashboard Widget /wp-admin/options-general.php?page=pcdw | 870 | 2.19 | 24.43 | 30.87 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pcdw
- > Notice in wp-content/plugins/profpanda-custom-dashboard-widget/profpanda_custom_dashboard_widget.php+176
Trying to access array offset on value of type bool
SRP 50% from 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
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/profpanda-custom-dashboard-widget/profpanda_custom_dashboard_widget.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: widget, dashboard, custom html
profpanda-custom-dashboard-widget/profpanda_custom_dashboard_widget.php 85% from 13 tests
This is the main PHP file of "ProfPanda Custom Dashboard Widget" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("profpanda-custom-dashboard-widget.php" instead of "profpanda_custom_dashboard_widget.php")
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
Everything looks great! No dangerous files found in this plugin347 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 73 | 238 |
PO File | 1 | 17 | 17 | 60 |
CSS | 1 | 7 | 0 | 35 |
JavaScript | 1 | 4 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected