78% fonk-slack-notifications

Code Review | Fonk - Slack Notifications for Devs

WordPress plugin Fonk - Slack Notifications for Devs scored78%from 54 tests.

About plugin

  • Plugin page: fonk-slack-notifi...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 14, 2020
  • Latest release: Nov 14, 2020
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: fonkcapetown (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /365 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.58ms] Passed 4 tests

This is a short check of server-side resources used by Fonk - Slack Notifications for Devs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1046.31 ▲0.46
Dashboard /wp-admin3.41 ▲0.1049.22 ▼8.32
Posts /wp-admin/edit.php3.52 ▲0.1653.11 ▲0.48
Add New Post /wp-admin/post-new.php5.99 ▲0.1088.22 ▼14.94
Media Library /wp-admin/upload.php3.33 ▲0.1042.40 ▲2.85
Slack Notifications /wp-admin/options-general.php?page=fonk-slack-notification-settings3.3034.36

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
fonk_slack_notification_enabled_setting
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Fonk - Slack Notifications for Devs
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲9013.53 ▼1.039.50 ▲7.4442.32 ▲0.13
Dashboard /wp-admin2,199 ▲225.65 ▼0.0291.77 ▼2.3137.90 ▼7.93
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0339.82 ▲5.3435.58 ▼1.56
Add New Post /wp-admin/post-new.php1,529 ▼1117.56 ▼5.83719.51 ▲59.0453.10 ▼1.64
Media Library /wp-admin/upload.php1,407 ▲74.25 ▲0.0599.57 ▼5.9242.00 ▼6.45
Slack Notifications /wp-admin/options-general.php?page=fonk-slack-notification-settings8992.1924.7736.81

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • fonk_slack_notification_enabled_setting
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fonk-slack-notifications/public/partials/fonk-slack-notification-public-display.php
    • > /wp-content/plugins/fonk-slack-notifications/admin/partials/fonk-slack-notification-admin-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/fonk-slack-notifications/admin/partials/fonk-slack-notification-admin-settings-display.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: fonk, developers, slack, notifications

fonk-slack-notifications/fonk-slack-notification.php 85% from 13 tests

This is the main PHP file of "Fonk - Slack Notifications for Devs" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fonk-slack-notifications.php" instead of "fonk-slack-notification.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin601 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13153662433
JavaScript22777146
CSS26922

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.29
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin