83% ultimate-slack-notifications

Code Review | Ultimate Slack Notifications

WordPress plugin Ultimate Slack Notifications scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-slack-no...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6+
  • WordPress version: 6.3.1
  • First release: Apr 23, 2016
  • Latest release: May 7, 2016
  • Number of updates: 17
  • Update frequency: every 0.8 days
  • Top authors: albertwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,583 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▼0.81ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Slack Notifications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2044.41 ▼0.61
Dashboard /wp-admin3.50 ▲0.1949.72 ▼3.06
Posts /wp-admin/edit.php3.61 ▲0.2550.95 ▲0.81
Add New Post /wp-admin/post-new.php6.10 ▲0.21100.87 ▲8.52
Media Library /wp-admin/upload.php3.42 ▲0.1939.45 ▼0.40
Add New /wp-admin/post-new.php?post_type=ppwpslack3.4649.37
All Slacks /wp-admin/edit.php?post_type=ppwpslack3.4641.13

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate Slack Notifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.80 ▼0.828.46 ▲6.1743.83 ▼1.21
Dashboard /wp-admin2,233 ▲784.86 ▼0.74112.25 ▲8.6342.02 ▲0.46
Posts /wp-admin/edit.php2,119 ▲302.04 ▲0.0439.26 ▼0.4037.22 ▲1.48
Add New Post /wp-admin/post-new.php1,556 ▲3723.25 ▲0.06662.31 ▲32.2347.72 ▼1.58
Media Library /wp-admin/upload.php1,418 ▲304.18 ▼0.0094.64 ▼10.3545.64 ▲0.17
Add New /wp-admin/post-new.php?post_type=ppwpslack1,6742.6349.7067.41
All Slacks /wp-admin/edit.php?post_type=ppwpslack1,1032.0038.4728.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ultimate-slack-notifications/admin/partials/ppwpslack-admin-display.php
    • > /wp-content/plugins/ultimate-slack-notifications/public/partials/ppwpslack-public-display.php

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 90% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

ultimate-slack-notifications/ultimate-slack-notifications.php 85% from 13 tests

Analyzing the main PHP file in "Ultimate Slack Notifications" version 1.1.0
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Domain Path: The domain path folder was not found ("/languages")

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
Good job! No executable or dangerous file extensions detected1,758 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4362730982
PHP12258621691
CSS4201685

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.57
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods45
▷ Static methods24.44%
▷ Public methods4088.89%
▷ Protected methods00.00%
▷ Private methods511.11%
Functions12
▷ Named functions433.33%
▷ Anonymous functions866.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png20.77KB6.89KB▼ 66.84%
assets/icon-128x128.png9.05KB3.54KB▼ 60.92%
assets/banner-772x250.png73.83KB22.93KB▼ 68.94%