83% remove-html-editor-from-admin-dashboard

Code Review | Remove HTML editor from admin dashboard

WordPress plugin Remove HTML editor from admin dashboard scored83%from 54 tests.

About plugin

  • Plugin page: remove-html-edito...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 28, 2011
  • Latest release: Apr 8, 2014
  • Number of updates: 4
  • Update frequency: every 209.7 days
  • Top authors: klagraff (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Remove HTML editor from admin dashboard
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.13 ▲1.64
Dashboard /wp-admin3.31 ▲0.0049.31 ▼5.37
Posts /wp-admin/edit.php3.36 ▲0.0048.03 ▼2.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.98 ▼15.61
Media Library /wp-admin/upload.php3.23 ▲0.0041.18 ▲5.33

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Remove HTML editor from admin dashboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,785 ▲2414.32 ▼0.362.29 ▲0.3942.48 ▼5.34
Dashboard /wp-admin2,194 ▲175.61 ▼0.1090.46 ▼3.2539.24 ▼7.57
Posts /wp-admin/edit.php2,096 ▼42.05 ▲0.0639.55 ▲2.8335.28 ▼1.41
Add New Post /wp-admin/post-new.php1,542 ▲823.18 ▼0.07615.69 ▼37.6449.85 ▼2.45
Media Library /wp-admin/upload.php1,396 ▼14.23 ▲0.0399.24 ▼7.4746.37 ▼0.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-html-editor-from-admin-dashboard/remove_html_editor.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

remove-html-editor-from-admin-dashboard/remove_html_editor.php 92% from 13 tests

This is the main PHP file of "Remove HTML editor from admin dashboard" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-html-editor-from-admin-dashboard.php" instead of "remove_html_editor.php")

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
There were no executable files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1196

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were 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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin