83% comments-tinymce

Code Review | Comment Form Editor with TinyMCE

WordPress plugin Comment Form Editor with TinyMCE scored83%from 54 tests.

About plugin

  • Plugin page: comments-tinymce
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 26, 2023
  • Latest release: Nov 12, 2023
  • Number of updates: 6
  • Update frequency: every 48.7 days
  • Top authors: shailu25 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /370 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Comment Form Editor with TinyMCE
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.22 ▼4.54
Dashboard /wp-admin3.32 ▲0.0145.25 ▼1.08
Posts /wp-admin/edit.php3.37 ▲0.0148.81 ▼2.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0378.68 ▼19.05
Media Library /wp-admin/upload.php3.24 ▲0.0132.47 ▼2.10

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Comment Form Editor with TinyMCE
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13013.72 ▼0.568.11 ▲6.4637.33 ▼5.01
Dashboard /wp-admin2,199 ▲225.57 ▼0.1093.36 ▲2.1536.76 ▼6.50
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0136.78 ▼1.6333.48 ▼2.36
Add New Post /wp-admin/post-new.php1,530 ▼523.47 ▼1.69636.62 ▲14.6551.29 ▼11.72
Media Library /wp-admin/upload.php1,398 ▼24.20 ▼0.03101.47 ▲5.0941.28 ▼0.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/comments-tinymce/admin/partials/comments-tinymce-admin-display.php
    • > /wp-content/plugins/comments-tinymce/public/partials/comments-tinymce-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% 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
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Requires php: The plugin version is formatted incorrectly
  • Screenshots: A description for screenshot #1 is required in comments-tinymce/assets to your readme.txt
The official readme.txt is a good inspiration

comments-tinymce/comments-tinymce.php Passed 13 tests

The principal PHP file in "Comment Form Editor with TinyMCE" v. 1.0.3 is loaded by WordPress automatically on each request
70 characters long description:
Users can easily add TinyMCE Editor in Comment Form in just one click.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin274 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12115513215
JavaScript233159
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected