90% external-notification

Code Review | External Notification

WordPress plugin External Notification scored90%from 54 tests.

About plugin

  • Plugin page: external-notifica...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1.24+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2020
  • Latest release: Oct 25, 2020
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /378 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.43ms] Passed 4 tests

Analyzing server-side resources used by External Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0347.34 ▲0.81
Dashboard /wp-admin3.61 ▼0.0249.59 ▼16.15
Posts /wp-admin/edit.php3.73 ▲0.0553.10 ▼0.71
Add New Post /wp-admin/post-new.php6.20 ▲0.0595.54 ▼7.91
Media Library /wp-admin/upload.php3.54 ▲0.0538.59 ▼0.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for External Notification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.38 ▲0.081.95 ▲0.1546.45 ▲4.90
Dashboard /wp-admin2,214 ▲345.63 ▼0.0793.73 ▼5.4040.66 ▼5.77
Posts /wp-admin/edit.php2,116 ▲162.03 ▼0.0039.24 ▲1.4634.51 ▼3.06
Add New Post /wp-admin/post-new.php1,558 ▲3223.45 ▲5.94612.03 ▼99.4054.33 ▼6.40
Media Library /wp-admin/upload.php1,419 ▲194.31 ▲0.17100.96 ▼14.9342.39 ▼5.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: notification, slack, pressman

external-notification/external-notification.php Passed 13 tests

The main file in "External Notification" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
27 characters long description:
Send notifications to Slack

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 plugin272 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24162213
PO File1233759

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin