84% dydupress

Code Review | dydu chatbots

WordPress plugin dydu chatbots scored84%from 54 tests.

About plugin

  • Plugin page: dydupress
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.4.22+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2021
  • Latest release: Nov 30, 2021
  • Number of updates: 14
  • Update frequency: every 3.1 days
  • Top authors: dydu7533 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /319 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.71ms] Passed 4 tests

This is a short check of server-side resources used by dydu chatbots
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.83 ▼4.27
Dashboard /wp-admin3.31 ▼0.0449.55 ▼12.98
Posts /wp-admin/edit.php3.36 ▲0.0057.47 ▲5.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.84 ▼21.81
Media Library /wp-admin/upload.php3.23 ▲0.0035.91 ▲4.21

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

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

Browser metrics Passed 4 tests

A check of browser resources used by dydu chatbots
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.22 ▼0.431.70 ▲0.0745.62 ▲5.31
Dashboard /wp-admin2,198 ▲215.63 ▼0.0390.22 ▼2.3438.48 ▼7.06
Posts /wp-admin/edit.php2,100 ▼02.16 ▲0.1839.70 ▲1.8036.74 ▲0.21
Add New Post /wp-admin/post-new.php1,526 ▼723.82 ▲0.73666.46 ▲31.2954.35 ▼5.56
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.01100.20 ▼5.3143.20 ▼1.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/dydupress/dydupress.php:47

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (dydu chatbox), #2 (Bot management system (knowledge view)), #3 (Bot management system (stats view))
The official readme.txt might help

dydupress/dydupress.php 92% from 13 tests

"dydu chatbots" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected303 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP841167192
PO File33642111

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.20
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods15
▷ Static methods640.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.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 files were detected