Benchmarks
Plugin footprint 65% 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.61MB] [CPU: ▼32.85ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress dialog
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 44.21 ▲1.30 |
Dashboard /wp-admin | 3.34 ▲0.03 | 24.22 ▼27.25 |
Posts /wp-admin/edit.php | 3.34 ▼0.02 | 28.81 ▼19.82 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.55 | 26.74 ▼72.60 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 25.08 ▼11.71 |
All Popup Dialogs /wp-admin/edit.php?post_type=teg-wp-dialog | 3.34 | 26.46 |
Settings /wp-admin/edit.php?post_type=teg-wp-dialog&page=teg-wp-dialog | 3.34 | 25.96 |
Add New /wp-admin/post-new.php?post_type=teg-wp-dialog | 3.34 | 25.92 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 74 new files
Database: no new tables, 9 new options
New WordPress options |
---|
teg_wp_dialog_version |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
teg_wp_dialog_admin_notices |
widget_theysaidso_widget |
can_compress_scripts |
teg_wp_dialog_db_version |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress dialog
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲218 | 14.03 ▼0.37 | 6.81 ▲4.94 | 44.71 ▲0.04 |
Dashboard /wp-admin | 2,234 ▲46 | 5.79 ▼0.13 | 95.04 ▼13.24 | 37.49 ▼10.56 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.04 ▲0.02 | 34.99 ▼1.52 | 33.81 ▲3.92 |
Add New Post /wp-admin/post-new.php | 1,559 ▲42 | 23.05 ▲5.52 | 650.23 ▲36.10 | 51.52 ▲3.82 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.23 ▲0.04 | 96.26 ▼4.43 | 41.84 ▼0.82 |
All Popup Dialogs /wp-admin/edit.php?post_type=teg-wp-dialog | 1,140 | 1.93 | 30.25 | 29.84 |
Settings /wp-admin/edit.php?post_type=teg-wp-dialog&page=teg-wp-dialog | 932 | 2.10 | 28.55 | 27.45 |
Add New /wp-admin/post-new.php?post_type=teg-wp-dialog | 2,502 | 7.59 | 168.69 | 64.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-posts
- teg_wp_dialog_db_version
- widget_theysaidso_widget
- teg_wp_dialog_version
- db_upgraded
- teg_wp_dialog_admin_notices
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=teg-wp-dialog
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=teg-wp-dialog&page=teg-wp-dialog
- > Network (severe)
wp-content/plugins/teg-wp-dialog/assets/js/select2/select2.min.js?ver=1.0.4 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=teg-wp-dialog&page=teg-wp-dialog
- > Network (severe)
wp-content/plugins/teg-wp-dialog/assets/js/admin/settings.min.js?ver=1.0.4 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== teg-wp-dialog ===
)
teg-wp-dialog/teg-wp-dialog.php 85% from 13 tests
"Wordpress dialog" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "4.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,862 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 966 | 1,629 | 2,752 |
Sass | 11 | 316 | 0 | 2,373 |
JavaScript | 12 | 188 | 244 | 731 |
CSS | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 14.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 3 | 13.04% |
▷ Concrete classes | 20 | 86.96% |
▷ Final classes | 1 | 5.00% |
Methods | 177 | |
▷ Static methods | 72 | 40.68% |
▷ Public methods | 125 | 70.62% |
▷ Protected methods | 21 | 11.86% |
▷ Private methods | 31 | 17.51% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/controls.png | 1.98KB | 2.04KB | 0.00% |
assets/images/border.png | 0.14KB | 0.16KB | 0.00% |
assets/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |