84% tinymce-unrestrictor

Code Review | TinyMCE Unrestrictor

WordPress plugin TinyMCE Unrestrictor scored84%from 54 tests.

About plugin

  • Plugin page: tinymce-unrestrictor
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2014
  • Latest release: Jun 7, 2014
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: klosi (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90+ active /2,625 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.10ms] Passed 4 tests

Server-side resources used by TinyMCE Unrestrictor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.29 ▼9.84
Dashboard /wp-admin3.31 ▲0.0145.60 ▼3.01
Posts /wp-admin/edit.php3.36 ▲0.0148.94 ▲6.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.72 ▲1.73
Media Library /wp-admin/upload.php3.24 ▲0.0135.33 ▼1.28

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

Browser metrics Passed 4 tests

An overview of browser requirements for TinyMCE Unrestrictor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▲0.161.68 ▼0.7238.65 ▼24.37
Dashboard /wp-admin2,209 ▲215.91 ▲0.9898.58 ▼13.2839.62 ▲0.86
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0339.01 ▲2.3134.00 ▲0.70
Add New Post /wp-admin/post-new.php1,534 ▲1423.27 ▲0.08608.50 ▼90.6754.95 ▼2.41
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.0896.25 ▼2.8942.71 ▼2.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 1× 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/tinymce-unrestrictor/tinymce-unrestrictor.php:41

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === tinymce-unrestrictor === )
The official readme.txt is a good inspiration

tinymce-unrestrictor/tinymce-unrestrictor.php 92% from 13 tests

The entry point to "TinyMCE Unrestrictor" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1204132

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin