84% dialogue-layout

Code Review | Dialogue Layout

WordPress plugin Dialogue Layout scored 84% from 54 tests.

About plugin

  • Plugin page: dialogue-layout
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5
  • WordPress version: 6.3.1
  • First release: Apr 23, 2016
  • Latest release: Apr 23, 2016
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: mayukojpn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

A check of server-side resources used by Dialogue Layout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.08 ▲1.39
Dashboard /wp-admin3.32 ▲0.0246.05 ▼2.19
Posts /wp-admin/edit.php3.37 ▲0.0251.41 ▲0.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.62 ▼8.05
Media Library /wp-admin/upload.php3.25 ▲0.0237.99 ▲0.56

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Dialogue Layout: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4813.28 ▼1.101.64 ▼0.5841.99 ▼3.31
Dashboard /wp-admin2,206 ▲184.86 ▼0.99108.96 ▼3.7440.50 ▼7.22
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0039.69 ▲2.8135.48 ▲1.69
Add New Post /wp-admin/post-new.php1,523 ▼1023.14 ▲0.01628.07 ▼34.7157.53 ▼2.84
Media Library /wp-admin/upload.php1,391 ▲34.23 ▼0.0193.85 ▼4.6742.52 ▼0.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dialogue-layout/dialogue-layout.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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:
  • Screenshots: Please add descriptions for these screenshots #2, #3 in dialogue-layout/assets to your readme.txt
The official readme.txt is a good inspiration

dialogue-layout/dialogue-layout.php Passed 13 tests

The main PHP script in "Dialogue Layout" version 0.1 is automatically included on every request by WordPress
70 characters long description:
An easy way to make conversation layout with avatars in post contents.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected171 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1168108
PO File1111336
CSS10027

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.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
No PNG images were found in this plugin