90% post-by-email-notify

Code Review | Post By Email Notify

WordPress plugin Post By Email Notify scored 90% from 54 tests.

About plugin

  • Plugin page: post-by-email-notify
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.5
  • WordPress version: 6.3.1
  • First release: Nov 8, 2013
  • Latest release: Apr 1, 2016
  • Number of updates: 7
  • Update frequency: every 125.1 days
  • Top authors: barryceelen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,275 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.79ms] Passed 4 tests

An overview of server-side resources used by Post By Email Notify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.08 ▼3.20
Dashboard /wp-admin3.32 ▲0.0247.25 ▼2.83
Posts /wp-admin/edit.php3.37 ▲0.0243.77 ▼6.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.12 ▼18.50
Media Library /wp-admin/upload.php3.24 ▲0.0136.02 ▼0.35

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Post By Email Notify: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.095.35 ▲3.3741.56 ▼1.48
Dashboard /wp-admin2,203 ▲155.77 ▲0.86100.89 ▼5.3741.65 ▼2.07
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0733.76 ▼0.3634.34 ▲0.42
Add New Post /wp-admin/post-new.php1,547 ▲3318.48 ▲0.96608.32 ▼71.3369.97 ▲15.86
Media Library /wp-admin/upload.php1,385 ▲34.23 ▲0.0594.14 ▼4.9341.60 ▼2.46

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: email, post-by-email

post-by-email-notify/post-by-email-notify.php Passed 13 tests

The main PHP script in "Post By Email Notify" version 1.0.0 is automatically included on every request by WordPress
67 characters long description:
Sends a notification to the author when a post is created by email.

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
Everything looks great! No dangerous files found in this plugin95 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32912363
PO File11320
Markdown18012

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.14
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin