84% comments-users-mentions

Code Review | Comments Users Mentions

WordPress plugin Comments Users Mentions scored84%from 54 tests.

About plugin

  • Plugin page: comments-users-me...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8
  • WordPress version: 6.3.1
  • First release: Feb 18, 2014
  • Latest release: Feb 21, 2014
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: baxeico (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,550 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
Install script ran successfully

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

Analyzing server-side resources used by Comments Users Mentions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.70 ▼1.89
Dashboard /wp-admin3.32 ▼0.0248.55 ▼16.14
Posts /wp-admin/edit.php3.37 ▲0.0250.49 ▼1.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.39 ▼4.84
Media Library /wp-admin/upload.php3.24 ▲0.0236.44 ▲0.05

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Comments Users Mentions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.142.00 ▲0.1837.53 ▼5.08
Dashboard /wp-admin2,198 ▲205.64 ▼0.0691.58 ▼11.0637.95 ▼4.34
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0438.55 ▼2.6135.78 ▼1.49
Add New Post /wp-admin/post-new.php1,535 ▲918.29 ▼4.84643.38 ▼43.6672.22 ▲14.21
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.01104.05 ▼0.3346.71 ▲0.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Please fix the following items
  • 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/comments-users-mentions/comments-users-mentions.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
3 plugin tags: email, comments, mentions

comments-users-mentions/comments-users-mentions.php Passed 13 tests

This is the main PHP file of "Comments Users Mentions" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
131 characters long description:
This plugin allows to mention Wordpress users in a comment by writing usernames preceded by a character (default @), e.g. @guguweb.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin77 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1132648
PO File191029

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions3
▷ Named functions3100.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 are no PNG files in this plugin