10% email-mentioned

Code Review | Email Mentioned

WordPress plugin Email Mentioned scored 10% from 54 tests.

About plugin

  • Plugin page: email-mentioned
  • Plugin version: 1.11
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.5-4.1.5
  • WordPress version: 6.3.1
  • First release: Jun 23, 2015
  • Latest release: Jan 2, 2016
  • Number of updates: 24
  • Update frequency: every 8.1 days
  • Top authors: Raulanton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,035 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Compile error in wp-content/plugins/email-mentioned/email-mentioned.php+191
    Cannot use $this as parameter

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.73ms] Passed 4 tests

A check of server-side resources used by Email Mentioned
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.90 ▼8.36
Dashboard /wp-admin3.31 ▲0.0041.17 ▼8.30
Posts /wp-admin/edit.php3.36 ▲0.0046.95 ▼2.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.59 ▼11.63
Media Library /wp-admin/upload.php3.23 ▲0.0035.60 ▲1.24

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Email Mentioned
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.151.58 ▼0.2137.39 ▼5.28
Dashboard /wp-admin2,203 ▲155.90 ▲0.99109.78 ▼9.0844.12 ▼10.51
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0240.57 ▲3.8936.52 ▲1.26
Add New Post /wp-admin/post-new.php1,533 ▲1923.39 ▲5.76636.03 ▼41.7477.77 ▲12.57
Media Library /wp-admin/upload.php1,391 ▲64.24 ▲0.0496.77 ▼5.4040.86 ▼3.67

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Cannot use $this as parameter in wp-content/plugins/email-mentioned/email-mentioned.php on line 191

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
9 plugin tags: mail, mentioned, mentions, comments, warn...

email-mentioned/email-mentioned.php 92% from 13 tests

The main file in "Email Mentioned" v. 1.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)

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
There were no executable files found in this plugin343 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File44865176
PHP19477167

PHP code Passed 2 tests

A brief analysis 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.13
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%
Functions7
▷ Named functions7100.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