84% disable-wysiwyg

Code Review | Disable WYSIWYG

WordPress plugin Disable WYSIWYG scored84%from 54 tests.

About plugin

  • Plugin page: disable-wysiwyg
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-5.8
  • WordPress version: 6.3.1
  • First release: Sep 4, 2014
  • Latest release: Aug 11, 2021
  • Number of updates: 25
  • Update frequency: every 101.4 days
  • Top authors: Sparanoid (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

70+ active /4,860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Disable WYSIWYG
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.20 ▼3.92
Dashboard /wp-admin3.31 ▲0.0043.34 ▼3.91
Posts /wp-admin/edit.php3.36 ▲0.0041.94 ▼1.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.67 ▼26.06
Media Library /wp-admin/upload.php3.23 ▲0.0034.83 ▲0.07

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Disable WYSIWYG: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.341.78 ▲0.0141.72 ▼3.03
Dashboard /wp-admin2,209 ▲275.91 ▲0.0598.08 ▼6.1837.56 ▼9.38
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0241.44 ▲4.5334.45 ▼0.98
Add New Post /wp-admin/post-new.php6,066 ▲4,54417.40 ▼5.61829.25 ▲189.8168.00 ▲16.02
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0296.49 ▼2.7342.61 ▼1.54

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-wysiwyg/disable-wysiwyg.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

disable-wysiwyg/disable-wysiwyg.php 92% from 13 tests

"Disable WYSIWYG" version 1.0.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12252

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin