10% ultimate-tinymce

Code Review | Ultimate TinyMCE

WordPress plugin Ultimate TinyMCE scored10%from 54 tests.

About plugin

  • Plugin page: ultimate-tinymce
  • Plugin version: 5.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.8.3
  • WordPress version: 6.3.1
  • First release: Nov 14, 2011
  • Latest release: Dec 10, 2014
  • Number of updates: 415
  • Update frequency: every 2.7 days
  • Top authors: josh401 (99.76%)

Code review

54 tests

User reviews

145 reviews

Install metrics

20,000+ active /2,824,657 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/ultimate-tinymce/main.php+212
    Methods with the same name as their class will not be constructors in a future version of PHP; jwl_metabox_admin has a deprecated constructor

Server metrics [RAM: ▼1.65MB] [CPU: ▼51.98ms] Passed 4 tests

A check of server-side resources used by Ultimate TinyMCE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.35 ▼1.115.88 ▼34.52
Dashboard /wp-admin2.37 ▼0.977.92 ▼52.54
Posts /wp-admin/edit.php2.37 ▼0.988.46 ▼39.25
Add New Post /wp-admin/post-new.php2.37 ▼3.515.93 ▼81.59
Media Library /wp-admin/upload.php2.37 ▼0.866.36 ▼29.90

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 631 new files
Database: no new tables, 8 new options
New WordPress options
jwl_options_group4
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
jwl_options_group3

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate TinyMCE
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.28 ▼1.141.52 ▼0.0740.42 ▼0.88
Dashboard /wp-admin2,309 ▲1216.08 ▲1.17105.39 ▼14.2140.78 ▼2.39
Posts /wp-admin/edit.php2,203 ▲1142.36 ▲0.3647.35 ▲10.7939.00 ▲3.87
Add New Post /wp-admin/post-new.php1,572 ▲5223.31 ▲0.23652.07 ▼10.7859.95 ▼4.93
Media Library /wp-admin/upload.php1,494 ▲1034.40 ▲0.23101.62 ▼2.8848.07 ▲0.59

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
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/ultimate-tinymce/main.php+212
    Methods with the same name as their class will not be constructors in a future version of PHP; jwl_metabox_admin has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • jwl_options_group3
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • jwl_options_group4
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ultimate-tinymce/includes/tinymce_addon_scripts.php
    • > /wp-content/plugins/ultimate-tinymce/addons/clker/search.php
    • > /wp-content/plugins/ultimate-tinymce/addons/shortcodes/shortcodes.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-tinymce/admin_functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-tinymce/main.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-tinymce/options_callback_functions.php:920
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-tinymce/options_functions.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/ultimate-tinymce/includes/style.php:23
    • > PHP Fatal error
      Uncaught Error: Class '_WP_Editors' not found in wp-content/plugins/ultimate-tinymce/includes/mce_langs.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 57 tag instead of maximum 10
The official readme.txt might help

ultimate-tinymce/main.php 92% from 13 tests

"Ultimate TinyMCE" version 5.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-tinymce.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected35,873 lines of code in 320 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1683,1112,85914,767
HTML93688257,678
PO File132,2032,7975,944
PHP115953004,743
CSS332941212,734
XML1004
Markdown1103

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.80
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods27
▷ Static methods622.22%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
Functions237
▷ Named functions237100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
200 PNG files occupy 1.04MB with 0.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/email.png3.48KB1.16KB▼ 66.54%
img/media.png3.46KB0.98KB▼ 71.55%
img/acronym.png3.25KB0.79KB▼ 75.74%
img/encode.png3.95KB0.75KB▼ 81.05%
js/jscolor/hv.png2.80KB7.32KB0.00%