94% addfunc-wysiwyg-helper

Code Review | AddFunc WYSIWYG Helper

WordPress plugin AddFunc WYSIWYG Helper scored 94% from 54 tests.

About plugin

  • Plugin page: addfunc-wysiwyg-h...
  • Plugin version: 5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 5.9.2
  • First release: Feb 13, 2015
  • Latest release: Dec 11, 2018
  • Number of updates: 24
  • Update frequency: every 63.2 days
  • Top authors: joerhoney (95.83%)AddFunc (8.33%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 7,526 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼293.94ms] Passed 4 tests

Server-side resources used by AddFunc WYSIWYG Helper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0360.12 ▲7.07
Dashboard /wp-admin3.44 ▲0.0437.16 ▲1.06
Posts /wp-admin/edit.php3.67 ▲0.0344.14 ▲4.68
Add New Post /wp-admin/post-new.php6.91 ▼0.06148.63 ▼1,178.90
Media Library /wp-admin/upload.php3.32 ▲0.0326.37 ▼2.61

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for AddFunc WYSIWYG Helper
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.01 ▲0.346.01 ▲0.242.62 ▲0.04
Dashboard /wp-admin2,895 ▲346.13 ▼0.07119.13 ▼18.23157.04 ▼5.14
Posts /wp-admin/edit.php2,685 ▼23.24 ▲0.0065.09 ▼8.79150.42 ▼2.04
Add New Post /wp-admin/post-new.php1,661 ▼9115.59 ▼5.37439.96 ▼8.63160.54 ▲3.87
Media Library /wp-admin/upload.php1,695 ▼65.47 ▲0.03144.92 ▼2.93190.47 ▼50.63

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addfunc-wysiwyg-helper/addfunc-wysiwyg-helper.php:26

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


Plugin configuration 96% from 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
4 plugin tags: element highlighter, wysiwyg, wysiwym, tinymce

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

The main PHP file in "AddFunc WYSIWYG Helper" ver. 5.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please 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 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin252 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
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 complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin