84% rte-comments

Code Review | RTE Comments

WordPress plugin RTE Comments scored84%from 54 tests.

About plugin

  • Plugin page: rte-comments
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Jan 14, 2013
  • Latest release: Jan 14, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /2,302 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
Installer ran successfully

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

Server-side resources used by RTE Comments
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.80 ▼5.84
Dashboard /wp-admin3.32 ▼0.0245.06 ▼11.06
Posts /wp-admin/edit.php3.38 ▲0.0247.69 ▼0.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.06 ▲4.69
Media Library /wp-admin/upload.php3.25 ▲0.0232.53 ▼1.28

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by RTE Comments
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲17113.58 ▼0.805.39 ▲3.4243.08 ▼7.72
Dashboard /wp-admin2,206 ▲154.85 ▼0.02107.15 ▲6.2242.35 ▲1.23
Posts /wp-admin/edit.php2,089 ▼32.11 ▲0.0640.98 ▲1.3634.96 ▼3.61
Add New Post /wp-admin/post-new.php1,533 ▼923.20 ▲4.78600.11 ▼20.9563.96 ▲16.60
Media Library /wp-admin/upload.php1,388 ▲64.25 ▲0.1093.47 ▼5.9343.02 ▼3.21

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rte-comments/rte-comments.php:230

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: rte, comments, comment, tinymce

rte-comments/rte-comments.php 92% from 13 tests

The principal PHP file in "RTE Comments" v. 1.0.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected117 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14112467
JavaScript111050

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods770.00%
▷ Public methods770.00%
▷ Protected methods00.00%
▷ Private methods330.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG files were detected