79% atmention-in-comments

Code Review | AtMention in Comments

WordPress plugin AtMention in Comments scored79%from 54 tests.

About plugin

  • Plugin page: atmention-in-comm...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-6.0.1
  • WordPress version: 6.3.1
  • First release: Dec 10, 2015
  • Latest release: Aug 21, 2022
  • Number of updates: 9
  • Update frequency: every 271.9 days
  • Top authors: Turn2honey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,482 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.90ms] Passed 4 tests

Analyzing server-side resources used by AtMention in Comments
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.30 ▼7.46
Dashboard /wp-admin3.35 ▼0.0043.73 ▼19.22
Posts /wp-admin/edit.php3.40 ▲0.0447.08 ▼1.32
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.92 ▲0.42
Media Library /wp-admin/upload.php3.27 ▲0.0434.28 ▲2.00
AtMention in Comments /wp-admin/options-general.php?page=atmention3.2428.52

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

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

Browser metrics Passed 4 tests

AtMention in Comments: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.281.80 ▼0.4537.03 ▼15.98
Dashboard /wp-admin2,207 ▲224.79 ▼0.23111.87 ▲7.3141.46 ▼4.79
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0139.52 ▲3.9634.35 ▼1.27
Add New Post /wp-admin/post-new.php1,536 ▲2323.33 ▲5.94650.76 ▼26.1560.85 ▲9.96
Media Library /wp-admin/upload.php1,392 ▲14.24 ▲0.09101.05 ▼0.4943.57 ▼1.56
AtMention in Comments /wp-admin/options-general.php?page=atmention8112.0322.7031.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
The following issues need your attention
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/atmention-in-comments/classes/class.atmention.php
    • > /wp-content/plugins/atmention-in-comments/classes/class.comments.php
    • > /wp-content/plugins/atmention-in-comments/atmention-in-comments.php
    • > /wp-content/plugins/atmention-in-comments/classes/class.settings.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/atmention-in-comments/uninstall.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: mentions, comments, twitter mention

atmention-in-comments/atmention-in-comments.php Passed 13 tests

The principal PHP file in "AtMention in Comments" v. 2.0.1 is loaded by WordPress automatically on each request
76 characters long description:
Mention both registered and non registered @comment_authors in post comments

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
Everything looks great! No dangerous files found in this plugin182 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP66177182

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity4.33
▷ Minimum class complexity2.00
▷ Maximum class complexity8.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods14
▷ Static methods14100.00%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin