83% remove-problematic-formatting-options-from-tinymce

Code Review | Remove Problematic Formatting Options From tinyMCE

WordPress plugin Remove Problematic Formatting Options From tinyMCE scored 83% from 54 tests.

About plugin

  • Plugin page: remove-problemati...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 24, 2014
  • Latest release: Mar 23, 2023
  • Number of updates: 21
  • Update frequency: every 150.7 days
  • Top authors: PIXELovely (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 2,267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.27MB] [CPU: ▼9.43ms] Passed 4 tests

An overview of server-side resources used by Remove Problematic Formatting Options From tinyMCE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.42 ▲0.30
Dashboard /wp-admin3.31 ▲0.0043.78 ▼3.78
Posts /wp-admin/edit.php3.36 ▲0.0044.97 ▼2.81
Add New Post /wp-admin/post-new.php4.80 ▼1.0858.06 ▼26.35
Media Library /wp-admin/upload.php3.23 ▲0.0034.10 ▼4.77

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
recovery_mode_email_last_sent
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Remove Problematic Formatting Options From tinyMCE: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.31 ▼1.491.68 ▲0.0439.57 ▼1.93
Dashboard /wp-admin2,206 ▼05.76 ▲0.8997.66 ▼2.7539.90 ▲2.35
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0239.47 ▲0.7234.60 ▼0.05
Add New Post /wp-admin/post-new.php45 ▼1,4880.44 ▼22.990.08 ▼721.629.35 ▼44.31
Media Library /wp-admin/upload.php1,385 ▼04.20 ▼0.0193.91 ▼2.9876.57 ▲31.80

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/remove-problematic-formatting-options-from-tinymce/pixelovely_removetinymcebuttons.php:53

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === remove-problematic-formatting-options-from-tinymce === )
The official readme.txt might help

remove-problematic-formatting-options-from-tinymce/pixelovely_removetinymcebuttons.php 85% from 13 tests

The main PHP script in "Remove Problematic Formatting Options From tinyMCE" version 1.0.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-problematic-formatting-options-from-tinymce.php" instead of "pixelovely_removetinymcebuttons.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 214 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 plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111925

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected