90% easy-digital-downloads-slack-notifications

Code Review | Easy Digital Downloads - Slack Notifications

WordPress plugin Easy Digital Downloads - Slack Notifications scored90%from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Mar 11, 2015
  • Latest release: Aug 11, 2020
  • Number of updates: 12
  • Update frequency: every 165.1 days
  • Top authors: tubiz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,528 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
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Easy Digital Downloads - Slack Notifications
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.63 ▲5.67
Dashboard /wp-admin3.33 ▲0.0346.87 ▼0.13
Posts /wp-admin/edit.php3.38 ▲0.0346.05 ▼5.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.56 ▼11.05
Media Library /wp-admin/upload.php3.25 ▲0.0337.07 ▲1.37

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Digital Downloads - Slack Notifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲5314.43 ▼0.132.06 ▼0.1242.66 ▼5.26
Dashboard /wp-admin2,216 ▲285.79 ▲0.7694.40 ▼17.1041.77 ▼3.51
Posts /wp-admin/edit.php2,098 ▲92.02 ▲0.0134.18 ▼4.4735.54 ▲1.43
Add New Post /wp-admin/post-new.php1,550 ▲3623.45 ▲6.06640.52 ▼47.6458.80 ▲0.83
Media Library /wp-admin/upload.php1,398 ▲104.24 ▲0.0794.59 ▼0.7642.35 ▼0.35

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: edd, easy digital downloads, tubiz plugins, nigeria, slack...

easy-digital-downloads-slack-notifications/edd-slack-notifications.php 92% from 13 tests

The principal PHP file in "Easy Digital Downloads - Slack Notifications" v. 2.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-digital-downloads-slack-notifications.php" instead of "edd-slack-notifications.php")

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
No dangerous file extensions were detected143 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14512143

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin