84% filter-email-notifications

Code Review | Filter Email Notifications

WordPress plugin Filter Email Notifications scored84%from 54 tests.

About plugin

  • Plugin page: filter-email-noti...
  • Plugin version: 0.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.0
  • WordPress version: 6.3.1
  • First release: Sep 10, 2008
  • Latest release: Sep 13, 2012
  • Number of updates: 14
  • Update frequency: every 104.6 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.43ms] Passed 4 tests

An overview of server-side resources used by Filter Email Notifications
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.07 ▼5.73
Dashboard /wp-admin3.35 ▲0.0548.59 ▲0.38
Posts /wp-admin/edit.php3.40 ▲0.0442.60 ▼3.94
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.26 ▼8.41
Media Library /wp-admin/upload.php3.27 ▲0.0435.07 ▲2.00

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
fen_approved_manually
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Filter Email Notifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.301.73 ▲0.0444.04 ▼2.34
Dashboard /wp-admin2,206 ▲145.88 ▲1.0093.43 ▼25.0738.08 ▼6.35
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0036.25 ▲0.1935.80 ▼0.88
Add New Post /wp-admin/post-new.php1,542 ▲918.08 ▼4.96627.64 ▼35.9858.09 ▲5.42
Media Library /wp-admin/upload.php1,382 ▼64.19 ▼0.20100.99 ▲0.8344.47 ▼2.06

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Almost there! Just 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 register_activation_hook() in wp-content/plugins/filter-email-notifications/filter-email-notifications.php:12

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: notifications, email, admin

filter-email-notifications/filter-email-notifications.php Passed 13 tests

"Filter Email Notifications" version 0.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
Stop WordPress from sending email notifications for comments that have been manually approved.

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
No dangerous file extensions were detected144 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14424144

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.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