84% comment-mention-notifications

Code Review | Comment Mention Notifications

WordPress plugin Comment Mention Notifications scored84%from 54 tests.

About plugin

  • Plugin page: comment-mention-n...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6.1
  • WordPress version: 6.3.1
  • First release: May 2, 2016
  • Latest release: Apr 21, 2016
  • Number of updates: 3
  • Update frequency: every 54.7 days
  • Top authors: SolaPlugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /981 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Comment Mention Notifications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.78 ▼5.42
Dashboard /wp-admin3.34 ▼0.0047.14 ▼15.06
Posts /wp-admin/edit.php3.39 ▲0.0447.77 ▼4.06
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.24 ▼0.94
Media Library /wp-admin/upload.php3.27 ▲0.0440.27 ▲4.93

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
sola_mentions_mail_head
sola_mentions_enable
db_upgraded
sola_mentions_mail_body
can_compress_scripts
theysaidso_admin_options
sola_mentions_mail_footer
sola_mentions_first_run
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Comment Mention Notifications
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.191.78 ▲0.1444.74 ▲4.54
Dashboard /wp-admin2,192 ▲155.58 ▼0.1092.53 ▲1.2042.17 ▲4.60
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0642.20 ▲5.5736.04 ▲0.92
Add New Post /wp-admin/post-new.php1,549 ▲723.23 ▲5.06620.24 ▼38.2452.56 ▲0.93
Media Library /wp-admin/upload.php1,397 ▼34.12 ▼0.07104.18 ▼4.8443.15 ▲1.24

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: 11 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • sola_mentions_enable
    • sola_mentions_first_run
    • sola_mentions_mail_head
    • widget_theysaidso_widget
    • sola_mentions_mail_body
    • sola_mentions_mail_footer
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/comment-mention-notifications/comment-mention-notifications.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Settings page displaying the various options available), #2 (Example email of what your users can expect to receive when they are notified)
You can look at the official readme.txt

comment-mention-notifications/comment-mention-notifications.php 92% from 13 tests

Analyzing the main PHP file in "Comment Mention Notifications" version 1.0.0
The following require your attention:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected209 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP17310172
PO File18837

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin