78% dialogfeed

Code Review | Dialogfeed

WordPress plugin Dialogfeed scored78%from 54 tests.

About plugin

  • Plugin page: dialogfeed
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Nov 20, 2013
  • Latest release: Nov 27, 2014
  • Number of updates: 72
  • Update frequency: every 5.2 days
  • Top authors: dialogfeed (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /7,080 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.00MB] [CPU: ▼4.12ms] Passed 4 tests

Server-side resources used by Dialogfeed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.38 ▲0.89
Dashboard /wp-admin3.31 ▲0.0146.60 ▼0.33
Posts /wp-admin/edit.php3.36 ▲0.0046.58 ▼4.96
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.33 ▼12.08
Media Library /wp-admin/upload.php3.23 ▲0.0032.34 ▲1.58

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Dialogfeed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.78 ▼0.521.77 ▼0.0844.14 ▲2.98
Dashboard /wp-admin2,222 ▲405.80 ▼0.0896.43 ▼6.4638.14 ▼6.71
Posts /wp-admin/edit.php2,108 ▲161.99 ▲0.0040.88 ▼2.5836.12 ▼0.37
Add New Post /wp-admin/post-new.php1,546 ▼323.04 ▲4.95643.44 ▲32.1650.34 ▲0.47
Media Library /wp-admin/upload.php1,404 ▲164.19 ▼0.0294.43 ▼0.2541.02 ▲0.27

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/dialogfeed/views/widgets/wall.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: slug in wp-content/plugins/dialogfeed/views/widgets/wall.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/dialogfeed/views/backend.php:1
    • > PHP Notice
      Undefined variable: slug in wp-content/plugins/dialogfeed/views/widgets/wall.php on line 3
    • > PHP Notice
      Undefined variable: height in wp-content/plugins/dialogfeed/views/widgets/wall.php on line 5
    • > PHP Notice
      Undefined variable: width in wp-content/plugins/dialogfeed/views/widgets/wall.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dialogfeed/dialogfeed.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
The official readme.txt might help

dialogfeed/dialogfeed.php Passed 13 tests

"Dialogfeed" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
51 characters long description:
Allow to take the flow from your widget dialogfeed.

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
No dangerous file extensions were detected237 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33742140
CSS118764
PO File114033

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/dialogfeed_logo.png45.34KB22.70KB▼ 49.94%