84% tinymce-clear-buttons

Code Review | TinyMCE Clear Float

WordPress plugin TinyMCE Clear Float scored84%from 54 tests.

About plugin

  • Plugin page: tinymce-clear-but...
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Apr 28, 2010
  • Latest release: Aug 1, 2018
  • Number of updates: 21
  • Update frequency: every 143.7 days
  • Top authors: Tyrannous (80.95%)miguelibero (23.81%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10,000+ active /67,367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.24ms] Passed 4 tests

A check of server-side resources used by TinyMCE Clear Float
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.13 ▼6.14
Dashboard /wp-admin3.34 ▲0.0446.57 ▼3.68
Posts /wp-admin/edit.php3.45 ▲0.1049.19 ▲5.78
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.33 ▲2.06
Media Library /wp-admin/upload.php3.26 ▲0.0436.75 ▲2.79

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

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

Browser metrics Passed 4 tests

TinyMCE Clear Float: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.431.65 ▼0.1239.70 ▼5.58
Dashboard /wp-admin2,206 ▲215.89 ▲1.01106.29 ▼13.1639.48 ▼5.81
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0441.79 ▲3.3136.52 ▲1.53
Add New Post /wp-admin/post-new.php1,547 ▲3318.58 ▲1.14616.48 ▼70.7762.96 ▲2.01
Media Library /wp-admin/upload.php1,388 ▲34.25 ▲0.0696.34 ▼4.7842.01 ▼3.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class '_WP_Editors' not found in wp-content/plugins/tinymce-clear-buttons/admin/tinymce/tinymce-clear-float/languages/tinymce-clear-float-lang.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: formatting, wordpress editor, wysiwyg, clear floats, tinymce...

tinymce-clear-buttons/tinymce-clear-buttons.php 92% from 13 tests

Analyzing the main PHP file in "TinyMCE Clear Float" version 1.3.2
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected206 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP670287131
JavaScript2152464
CSS22010
SVG1001

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.14
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.35
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/tinymce/tinymce-clear-float/images/tinymce-clear-float-placeholder-2x.png0.66KB0.66KB0.00%
admin/tinymce/tinymce-clear-float/images/tinymce-clear-float-placeholder.png0.36KB0.37KB0.00%