68% easy-wysiwyg-style

Code Review | Easy Wysiwyg Style

WordPress plugin Easy Wysiwyg Style scored68%from 54 tests.

About plugin

  • Plugin page: easy-wysiwyg-style
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Jul 30, 2014
  • Latest release: Oct 31, 2015
  • Number of updates: 10
  • Update frequency: every 45.9 days
  • Top authors: jokioki (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /12,982 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0148.84 ▲4.64
Dashboard /wp-admin3.00 ▼0.3023.14 ▼31.07
Posts /wp-admin/edit.php3.00 ▼0.3525.06 ▼25.60
Add New Post /wp-admin/post-new.php3.00 ▼2.8925.92 ▼75.67
Media Library /wp-admin/upload.php3.00 ▼0.2326.80 ▼12.34
Easy Wysiwyg Style /wp-admin/options-general.php?page=options_ews_page3.0019.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.081.56 ▼0.2145.10 ▼0.33
Dashboard /wp-admin2,202 ▲255.63 ▼0.0489.22 ▼8.0040.30 ▼3.46
Posts /wp-admin/edit.php2,104 ▲11.96 ▼0.0535.29 ▼10.7033.96 ▼3.26
Add New Post /wp-admin/post-new.php1,531 ▲522.81 ▼0.76668.97 ▼27.2456.52 ▼29.90
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.03108.61 ▲1.9647.84 ▲3.35
Easy Wysiwyg Style /wp-admin/options-general.php?page=options_ews_page9591.9924.2288.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP567212264
CSS20464
JavaScript1001

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 code0.10
Average class complexity2.33
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.21
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
admin/img/title.png3.89KB2.17KB▼ 44.15%