78% average-wysiwyg-helper

Code Review | Average WYSIWYG Helper

WordPress plugin Average WYSIWYG Helper scored78%from 54 tests.

About plugin

  • Plugin page: average-wysiwyg-h...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Feb 18, 2015
  • Number of updates: 73
  • Update frequency: every 2.9 days
  • Top authors: joerhoney (98.63%)AddFunc (2.74%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /3,103 total downloads

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.15MB] [CPU: ▼18.38ms] Passed 4 tests

A check of server-side resources used by Average WYSIWYG Helper
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.63 ▼4.23
Dashboard /wp-admin3.22 ▼0.1230.72 ▼28.70
Posts /wp-admin/edit.php3.29 ▼0.0734.19 ▼17.27
Add New Post /wp-admin/post-new.php5.46 ▼0.4376.37 ▼23.33
Media Library /wp-admin/upload.php3.23 ▼0.0032.94 ▼2.79
WYSIWYG Helper /wp-admin/options-general.php?page=avrgwysiwyg_options3.2028.07

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Average WYSIWYG Helper: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲6713.55 ▼0.851.74 ▲0.1340.30 ▲2.51
Dashboard /wp-admin2,210 ▲184.85 ▼0.09108.79 ▲0.7842.73 ▼0.49
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0538.89 ▲1.0934.29 ▲0.21
Add New Post /wp-admin/post-new.php1,545 ▲2518.43 ▼4.56645.13 ▼16.9755.84 ▲3.23
Media Library /wp-admin/upload.php1,395 ▲74.15 ▼0.05107.60 ▲12.0946.43 ▲2.56
WYSIWYG Helper /wp-admin/options-general.php?page=avrgwysiwyg_options9422.0226.2627.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=avrgwysiwyg_options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method avrgwysiwyg_class::post_upgrade_nag() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=avrgwysiwyg_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=avrgwysiwyg_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/average-wysiwyg-helper/average-wysiwyg-helper.php:86
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/average-wysiwyg-helper/options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
4 plugin tags: wysiwym, tinymce, wysiwyg, element highlighter

average-wysiwyg-helper/average-wysiwyg-helper.php 92% from 13 tests

The entry point to "Average WYSIWYG Helper" version 2.2.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 353 characters long)

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
There were no executable files found in this plugin247 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3925163
CSS283084

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods583.33%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin