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.11MB] [CPU: ▼5.62ms] Passed 4 tests
This is a short check of server-side resources used by Puddinq Dashboard
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.49 ▼9.62 |
Dashboard /wp-admin | 3.42 ▲0.12 | 46.09 ▼4.23 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.66 ▼0.88 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 85.19 ▼7.74 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.99 ▲3.78 |
Puddinq Dashboard /wp-admin/options-general.php?page=puddinq-dashboard | 3.15 | 27.82 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
puddinq_dashboard_widg_array |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Puddinq Dashboard
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.16 ▼1.58 | 4.34 ▲2.45 | 40.43 ▼9.57 |
Dashboard /wp-admin | 2,210 ▲25 | 5.85 ▼0.03 | 100.82 ▼15.52 | 40.40 ▼4.64 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.04 | 37.11 ▼0.46 | 31.34 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.30 ▲5.65 | 673.02 ▼8.07 | 57.21 ▲3.17 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.21 ▼0.04 | 96.11 ▼13.69 | 41.86 ▼4.97 |
Puddinq Dashboard /wp-admin/options-general.php?page=puddinq-dashboard | 1,604 | 3.85 | 73.06 | 65.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=puddinq-dashboard
- > Notice in wp-content/plugins/puddinq-dashboard/includes/init.php+88
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/puddinq-dashboard/includes/init.php
- 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/puddinq-dashboard/widgets/dashboard_picture.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: admin, colors, puddinq, dashboard, widget
puddinq-dashboard/puddinq-dashboard.php 92% from 13 tests
The primary PHP file in "Puddinq Dashboard" version 0.1.1 is used by WordPress to initiate all plugin functionality
It is important to 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin767 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 242 | 226 | 548 |
JavaScript | 1 | 25 | 14 | 86 |
PO File | 1 | 41 | 51 | 85 |
CSS | 1 | 15 | 2 | 48 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/smile.png | 14.94KB | 0.70KB | ▼ 95.29% |