84% tinymce-paste-in-plain-text-by-default

Code Review | TinyMCE Paste in Plain Text by Default

WordPress plugin TinyMCE Paste in Plain Text by Default scored84%from 54 tests.

About plugin

  • Plugin page: tinymce-paste-in-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 18, 2013
  • Latest release: Mar 18, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: raphaabreu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,269 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.40ms] Passed 4 tests

This is a short check of server-side resources used by TinyMCE Paste in Plain Text by Default
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.68 ▲0.01
Dashboard /wp-admin3.31 ▲0.0142.96 ▼5.67
Posts /wp-admin/edit.php3.36 ▲0.0047.30 ▼1.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.33 ▼2.13
Media Library /wp-admin/upload.php3.23 ▲0.0035.23 ▲1.59

Server storage [IO: ▲0.00MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for TinyMCE Paste in Plain Text by Default
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.33 ▼1.421.62 ▼0.0137.94 ▼2.83
Dashboard /wp-admin2,206 ▲155.91 ▲0.87111.95 ▲3.2442.22 ▲0.69
Posts /wp-admin/edit.php2,092 ▲31.97 ▼0.0941.01 ▼1.9834.74 ▼2.83
Add New Post /wp-admin/post-new.php1,514 ▼2817.73 ▼0.40653.49 ▼4.0557.95 ▲7.64
Media Library /wp-admin/upload.php1,382 ▼64.16 ▼0.0493.42 ▼14.3041.40 ▼2.39

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tinymce-paste-in-plain-text-by-default/wp-tinymce-paste-in-plain.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

tinymce-paste-in-plain-text-by-default/wp-tinymce-paste-in-plain.php 92% from 13 tests

"TinyMCE Paste in Plain Text by Default" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("tinymce-paste-in-plain-text-by-default.php" instead of "wp-tinymce-paste-in-plain.php")

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
Good job! No executable or dangerous file extensions detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18289

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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
There are no PNG files in this plugin