66% wp-editor-comments-plus

Code Review | WP Editor Comments Plus

WordPress plugin WP Editor Comments Plus scored66%from 54 tests.

About plugin

  • Plugin page: wp-editor-comment...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.5.1
  • WordPress version: 6.3.1
  • First release: Jan 8, 2016
  • Latest release: May 6, 2021
  • Number of updates: 16
  • Update frequency: every 121.6 days
  • Top authors: Neosnc (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /6,297 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼4.98ms] Passed 4 tests

A check of server-side resources used by WP Editor Comments Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2134.26 ▼12.74
Dashboard /wp-admin36.76 ▲33.376,850,873.27 ▲6,850,804.63
Posts /wp-admin/edit.php3.67 ▲0.2758.19 ▲3.58
Add New Post /wp-admin/post-new.php6.14 ▲0.2195.54 ▼20.70
Media Library /wp-admin/upload.php3.48 ▲0.2147.53 ▲9.95
WP Editor Comments Plus /wp-admin/options-general.php?page=wp-editor-comments-plus3.3636.48

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Editor Comments Plus: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,922 ▲17614.66 ▲0.3829.49 ▲27.7539.07 ▼8.71
Dashboard /wp-admin2,196 ▲195.55 ▲0.0284.31 ▼11.4341.90 ▼0.97
Posts /wp-admin/edit.php2,104 ▲11.98 ▼0.0233.10 ▼5.1537.33 ▲2.75
Add New Post /wp-admin/post-new.php1,529 ▲323.28 ▲0.22627.92 ▼80.9550.62 ▼9.64
Media Library /wp-admin/upload.php1,404 ▲44.24 ▲0.02103.76 ▼0.6745.40 ▼0.97
WP Editor Comments Plus /wp-admin/options-general.php?page=wp-editor-comments-plus1,2143.2778.6235.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=wp-editor-comments-plus
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-editor-comments-plus
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-editor-comments-plus
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-editor-comments-plus/views/public.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-editor-comments-plus/views/admin.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wp-editor-comments-plus
    • > Network (severe)
    wp-content/plugins/wp-editor-comments-plus/src/images/ui-icons_444444_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)

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
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (WP Editor Comments Plus installed in the official WordPress Twenty Sixteen theme.), #2 (Settings options for WP Editor Comments Plus.)
Please take inspiration from this readme.txt

wp-editor-comments-plus/wp-editor-comments-plus.php 92% from 13 tests

The main PHP script in "WP Editor Comments Plus" version 1.1.4 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected1,274 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP6146283680
JavaScript412684591
Markdown1002
CSS1151

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity76.00
▷ Minimum class complexity76.00
▷ Maximum class complexity76.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods2796.43%
▷ Protected methods00.00%
▷ Private methods13.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants43
▷ Global constants43100.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
5 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png52.14KB53.91KB0.00%
src/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
src/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
src/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
screenshot-1.png72.84KB75.12KB0.00%