84% addfunc-wysiwyg-helper

Code Review | AddFunc WYSIWYG Helper

WordPress plugin AddFunc WYSIWYG Helper scored84%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: 6.3.1
  • 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

300+ active /7,968 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.48ms] Passed 4 tests

Analyzing server-side resources used by AddFunc WYSIWYG Helper
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.05 ▼1.37
Dashboard /wp-admin3.33 ▲0.0351.19 ▲4.70
Posts /wp-admin/edit.php3.38 ▲0.0349.25 ▼6.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.75 ▼19.68
Media Library /wp-admin/upload.php3.26 ▲0.0333.34 ▼2.45

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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

AddFunc WYSIWYG Helper: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.52 ▼1.081.76 ▲0.1142.88 ▼5.81
Dashboard /wp-admin2,206 ▲215.85 ▼0.03110.61 ▼4.6140.36 ▼5.22
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0440.65 ▼0.0736.05 ▲0.27
Add New Post /wp-admin/post-new.php1,542 ▲1118.19 ▼5.08602.23 ▼37.0251.65 ▼13.00
Media Library /wp-admin/upload.php1,385 ▼04.23 ▲0.0692.86 ▼7.4242.51 ▲0.38

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: wysiwyg, element highlighter, 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 take the time 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin252 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS2829136
PHP21529116

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG images were found in this plugin