Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼36.17ms] Passed 4 tests
This is a short check of server-side resources used by Easy Wysiwyg Style
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 48.84 ▲4.64 |
Dashboard /wp-admin | 3.00 ▼0.30 | 23.14 ▼31.07 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 25.06 ▼25.60 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 25.92 ▼75.67 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 26.80 ▼12.34 |
Easy Wysiwyg Style /wp-admin/options-general.php?page=options_ews_page | 3.00 | 19.85 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Easy Wysiwyg Style: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.27 ▼0.08 | 1.56 ▼0.21 | 45.10 ▼0.33 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▼0.04 | 89.22 ▼8.00 | 40.30 ▼3.46 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.96 ▼0.05 | 35.29 ▼10.70 | 33.96 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.81 ▼0.76 | 668.97 ▼27.24 | 56.52 ▼29.90 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▼0.03 | 108.61 ▲1.96 | 47.84 ▲3.35 |
Easy Wysiwyg Style /wp-admin/options-general.php?page=options_ews_page | 959 | 1.99 | 24.22 | 88.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure validation failed for this plugin
- > 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.)
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=options_ews_page
- > 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.)
- > GET request to /wp-admin/options-general.php?page=options_ews_page
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Easy_Wysiwyg_Style_Admin::build_ews_options_page() should not be called statically
- > GET request to /wp-admin/options-general.php?page=options_ews_page
- > Notice in wp-content/plugins/easy-wysiwyg-style/admin/partials/easy-wysiwyg-style.php+98
Undefined index: class
- > GET request to /wp-admin/options-general.php?page=options_ews_page
- > Notice in wp-content/plugins/easy-wysiwyg-style/admin/partials/easy-wysiwyg-style.php+104
Undefined index: css
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/easy-wysiwyg-style/admin/partials/easy-wysiwyg-style.php:90
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: wysiwyg editor style css preview
easy-wysiwyg-style/easy-wysiwyg-style.php Passed 13 tests
"Easy Wysiwyg Style" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
129 characters long description:
Allows you to view the styling of your theme in the Wysiwyg editor. Enhances your Wysiwyg and adds the insert table functionality
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
Everything looks great! No dangerous files found in this plugin329 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 67 | 212 | 264 |
CSS | 2 | 0 | 4 | 64 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.79% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/title.png | 3.89KB | 2.17KB | ▼ 44.15% |