84% tinymce-visual-editor-comment

Code Review | TinyMCE Visual Editor Comment

WordPress plugin TinyMCE Visual Editor Comment scored84%from 54 tests.

About plugin

  • Plugin page: tinymce-visual-ed...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.3
  • WordPress version: 6.3.1
  • First release: Aug 20, 2014
  • Latest release: Apr 8, 2016
  • Number of updates: 19
  • Update frequency: every 32.5 days
  • Top authors: tranhoang (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /13,280 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: ▼11.75ms] Passed 4 tests

An overview of server-side resources used by TinyMCE Visual Editor Comment
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.69 ▼3.38
Dashboard /wp-admin3.31 ▼0.0347.54 ▼19.27
Posts /wp-admin/edit.php3.36 ▲0.0150.62 ▲0.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.20 ▼25.03
Media Library /wp-admin/upload.php3.24 ▲0.0137.80 ▲0.70

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for TinyMCE Visual Editor Comment
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲15813.85 ▼0.539.20 ▲7.3045.49 ▲0.01
Dashboard /wp-admin2,216 ▲395.73 ▲0.1287.03 ▼1.4767.57 ▲22.49
Posts /wp-admin/edit.php2,120 ▲202.01 ▼0.0135.94 ▼4.1334.44 ▼5.02
Add New Post /wp-admin/post-new.php1,548 ▲2223.26 ▲5.71778.37 ▲87.2752.29 ▼3.10
Media Library /wp-admin/upload.php1,420 ▲234.17 ▼0.08102.58 ▼1.4271.77 ▲26.21

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-visual-editor-comment/setting.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-visual-editor-comment/setting.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-visual-editor-comment/setting.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: comment, visual editor comment, tinymce comment

tinymce-visual-editor-comment/index.php 92% from 13 tests

The principal PHP file in "TinyMCE Visual Editor Comment" v. 1.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tinymce-visual-editor-comment.php" instead of "index.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
No dangerous file extensions were detected111 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31316111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin