84% mention-links

Code Review | Mention Links

WordPress plugin Mention Links scored84%from 54 tests.

About plugin

  • Plugin page: mention-links
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 2, 2020
  • Latest release: Dec 1, 2023
  • Number of updates: 12
  • Update frequency: every 93.9 days
  • Top authors: rtcamp (50%)pavanpatil1 (41.67%)juhise (16.67%)vaishu.agola27 (16.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,488 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.93ms] Passed 4 tests

This is a short check of server-side resources used by Mention Links
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.05 ▼9.24
Dashboard /wp-admin3.40 ▲0.0549.71 ▼14.63
Posts /wp-admin/edit.php3.51 ▲0.1547.80 ▼3.56
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.39 ▼4.28
Media Library /wp-admin/upload.php3.32 ▲0.0933.58 ▼1.18
Mention Links /wp-admin/options-general.php?page=wp-mention-links3.3432.09

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Mention Links: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.37 ▲0.091.65 ▼0.3935.84 ▼7.72
Dashboard /wp-admin2,199 ▲195.60 ▼0.0589.64 ▼9.1239.62 ▼5.96
Posts /wp-admin/edit.php2,104 ▲42.08 ▲0.1039.33 ▲0.8535.91 ▲1.89
Add New Post /wp-admin/post-new.php1,548 ▲2223.25 ▼0.07626.30 ▼50.6556.12 ▲5.16
Media Library /wp-admin/upload.php1,404 ▲104.15 ▼0.1595.97 ▼4.6640.45 ▼0.38
Mention Links /wp-admin/options-general.php?page=wp-mention-links8502.0026.0427.93

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Trait 'Mention_Links\\Inc\\Traits\\Singleton' not found in wp-content/plugins/mention-links/inc/classes/class-plugin-configs.php on line 16
    • > PHP Fatal error
      Trait 'Mention_Links\\Inc\\Traits\\Singleton' not found in wp-content/plugins/mention-links/inc/classes/class-assets.php on line 15
    • > PHP Fatal error
      Trait 'Mention_Links\\Inc\\Traits\\Singleton' not found in wp-content/plugins/mention-links/inc/classes/plugin-configs/class-plugin-settings.php on line 16
    • > PHP Fatal error
      Trait 'Mention_Links\\Inc\\Traits\\Singleton' not found in wp-content/plugins/mention-links/inc/classes/class-plugin.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/mention-links/mention-links.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: custom post types mentions, mentions, user mentions, cpt mentions, post mentions

mention-links/mention-links.php 92% from 13 tests

The main PHP script in "Mention Links" version 1.0.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

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
Everything looks great! No dangerous files found in this plugin6,247 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JSON3005,859
PHP799218280
JavaScript3162367
PO File1141641

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity5.20
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods956.25%
▷ Protected methods743.75%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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