84% wp-discord-post-plus

Code Review | WP Discord Post Plus - Supports Unlimited Channels

WordPress plugin WP Discord Post Plus - Supports Unlimited Channels scored 84% from 54 tests.

About plugin

  • Plugin page: wp-discord-post-plus
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.2
  • WordPress version: 6.3.1
  • First release: Apr 17, 2019
  • Latest release: Apr 16, 2023
  • Number of updates: 11
  • Update frequency: every 132.7 days
  • Top authors: mymizan (81.82%)wptasker (27.27%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active / 15,494 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
Install script ran successfully

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

An overview of server-side resources used by WP Discord Post Plus - Supports Unlimited Channels
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.40 ▼1.18
Dashboard /wp-admin3.33 ▲0.0352.64 ▲8.25
Posts /wp-admin/edit.php3.38 ▲0.0349.63 ▲0.77
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.43 ▼13.44
Media Library /wp-admin/upload.php3.26 ▲0.0335.24 ▲0.47
WP Discord Post Plus /wp-admin/options-general.php?page=wp-discord-post-plus3.2236.99

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP Discord Post Plus - Supports Unlimited Channels
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲7213.26 ▼1.301.92 ▼0.0540.47 ▲1.32
Dashboard /wp-admin2,213 ▲214.86 ▼0.0396.40 ▼11.3240.33 ▼0.73
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0038.70 ▼2.7435.95 ▲1.92
Add New Post /wp-admin/post-new.php6,474 ▲4,96020.29 ▲2.80891.57 ▲218.3259.11 ▼5.85
Media Library /wp-admin/upload.php1,392 ▲14.24 ▼0.01104.36 ▼8.3047.47 ▼3.08
WP Discord Post Plus /wp-admin/options-general.php?page=wp-discord-post-plus1,0843.0544.3534.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp-discord-post-plus
    • > Notice in wp-content/plugins/wp-discord-post-plus/includes/class-wp-discord-post-admin.php+363
    Undefined index: category

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

wp-discord-post-plus/wp-discord-post.php 92% from 13 tests

"WP Discord Post Plus - Supports Unlimited Channels" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("wp-discord-post-plus.php" instead of "wp-discord-post.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,237 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP93045061,181
JavaScript122154
Markdown1102

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity16.38
▷ Minimum class complexity3.00
▷ Maximum class complexity37.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods77
▷ Static methods45.19%
▷ Public methods6888.31%
▷ Protected methods45.19%
▷ Private methods56.49%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/woocommerce_logo.png4.36KB1.55KB▼ 64.50%