94% post-notifier

Code Review | Post Notifier

WordPress plugin Post Notifier scored 94% from 54 tests.

About plugin

  • Plugin page: post-notifier
  • Plugin version: 0.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 5.8.1
  • First release: Jan 9, 2016
  • Latest release: Jan 10, 2016
  • Number of updates: 11
  • Update frequency: every 45.5 days
  • Top authors: marushu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 685 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼141.36ms] Passed 4 tests

Analyzing server-side resources used by Post Notifier
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1636.94 ▲12.84
Dashboard /wp-admin3.11 ▲0.0648.97 ▲1.23
Posts /wp-admin/edit.php3.16 ▲0.0650.72 ▲0.77
Add New Post /wp-admin/post-new.php5.48 ▲0.0497.22 ▼561.51
Media Library /wp-admin/upload.php3.06 ▲0.0534.13 ▼5.94
Post Notifier /wp-admin/options-general.php?page=post_notifier3.0231.08

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
post_notifier_settings

Browser metrics Passed 4 tests

A check of browser resources used by Post Notifier
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8915.91 ▲0.138.67 ▼2.4947.96 ▼6.10
Dashboard /wp-admin2,972 ▲416.02 ▲0.09137.44 ▼20.53123.15 ▲14.79
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0072.91 ▲2.6295.13 ▲8.86
Add New Post /wp-admin/post-new.php3,639 ▲1,95614.96 ▼3.23452.10 ▲76.57121.42 ▲7.29
Media Library /wp-admin/upload.php1,812 ▲25.01 ▼0.03163.03 ▲9.77124.57 ▼5.46
Post Notifier /wp-admin/options-general.php?page=post_notifier1,0762.0558.4476.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-notifier/post-notifier.php:31

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: mail

post-notifier/post-notifier.php Passed 13 tests

The main PHP file in "Post Notifier" ver. 0.5.0 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Send information to the specified e-mail address when the post published.

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
No dangerous file extensions were detected258 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP27978224
PO File1111334

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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