88% dwqa-slack-integration

Code Review | DWQA Slack Integration

WordPress plugin DWQA Slack Integration scored 88% from 54 tests.

About plugin

  • Plugin page: dwqa-slack-integr...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 5.9.2
  • First release: Aug 22, 2016
  • Latest release: Aug 22, 2016
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: designwall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 846 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼297.20ms] Passed 4 tests

A check of server-side resources used by DWQA Slack Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0451.97 ▲3.81
Dashboard /wp-admin3.45 ▲0.0532.90 ▼0.00
Posts /wp-admin/edit.php3.68 ▲0.0435.33 ▼1.86
Add New Post /wp-admin/post-new.php6.92 ▼0.0592.42 ▼1,179.76
Media Library /wp-admin/upload.php3.33 ▲0.0324.08 ▼7.19
Slack Integration /wp-admin/edit.php?post_type=dwqa-question&page=dwqa_slack3.1417.82

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

DWQA Slack Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.77 ▲0.155.78 ▲0.022.85 ▲0.09
Dashboard /wp-admin2,892 ▲346.14 ▼0.04116.97 ▼17.60157.14 ▼0.94
Posts /wp-admin/edit.php2,691 ▲33.23 ▼0.0061.37 ▲0.25139.03 ▼0.27
Add New Post /wp-admin/post-new.php1,661 ▼5016.04 ▼5.35427.33 ▼7.90154.65 ▼1.32
Media Library /wp-admin/upload.php1,698 ▼05.55 ▲0.01138.67 ▲0.02183.06 ▼9.98
Slack Integration /wp-admin/edit.php?post_type=dwqa-question&page=dwqa_slack280.940.0317.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dwqa-slack-integration/dwqa-slack.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=dwqa-question&page=dwqa_slack
    • > Network (severe)
    wp-admin/edit.php?post_type=dwqa-question&page=dwqa_slack - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: dwqa, slack, dw question answer

dwqa-slack-integration/dwqa-slack.php 92% from 13 tests

The main file in "DWQA Slack Integration" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dwqa-slack-integration.php" instead of "dwqa-slack.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin168 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13869168

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.26
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin