84% wp-tidy-tinymce

Code Review | WP Tidy TinyMCE

WordPress plugin WP Tidy TinyMCE scored84%from 54 tests.

About plugin

  • Plugin page: wp-tidy-tinymce
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.9
  • WordPress version: 6.3.1
  • First release: Nov 5, 2012
  • Latest release: May 15, 2014
  • Number of updates: 8
  • Update frequency: every 69.9 days
  • Top authors: stormuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /6,381 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WP Tidy TinyMCE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.55 ▲1.97
Dashboard /wp-admin3.35 ▲0.0449.79 ▼0.87
Posts /wp-admin/edit.php3.40 ▲0.0463.21 ▲9.93
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.87 ▼20.84
Media Library /wp-admin/upload.php3.27 ▲0.0435.47 ▼1.47
Tidy TinyMCE /wp-admin/options-general.php?page=wptidytinymceoptions3.2439.33

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP Tidy TinyMCE
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.181.88 ▲0.1542.57 ▲1.27
Dashboard /wp-admin2,210 ▲194.86 ▼0.03113.10 ▲10.1644.36 ▲1.48
Posts /wp-admin/edit.php2,093 ▲11.98 ▼0.0139.65 ▼0.3533.61 ▼4.00
Add New Post /wp-admin/post-new.php1,523 ▼523.40 ▲0.22639.07 ▲19.1665.39 ▲18.72
Media Library /wp-admin/upload.php1,386 ▼54.12 ▼0.07113.80 ▲8.0141.29 ▼4.44
Tidy TinyMCE /wp-admin/options-general.php?page=wptidytinymceoptions9492.0726.5028.47

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-tidy-tinymce/wp-tidy-tinymce-options.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-tidy-tinymce/wp-lt-39.php:66
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/wp-tidy-tinymce/wp-tidy-tinymce.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-tidy-tinymce === )
You can take inspiration from this readme.txt

wp-tidy-tinymce/wp-tidy-tinymce.php Passed 13 tests

This is the main PHP file of "WP Tidy TinyMCE" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
Simple options to tidy up the uncommonly used buttons and controls from WordPress TinyMCE editor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected276 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34895206
Markdown122070

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.33
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin