84% widget-woony-talk

Code Review | Woony Talk

WordPress plugin Woony Talk scored84%from 54 tests.

About plugin

  • Plugin page: widget-woony-talk
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 23, 2022
  • Latest release: Jun 5, 2023
  • Number of updates: 11
  • Update frequency: every 26.6 days
  • Top authors: optimobile (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /539 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.15ms] Passed 4 tests

A check of server-side resources used by Woony Talk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.60 ▼2.38
Dashboard /wp-admin3.35 ▲0.0454.99 ▲6.91
Posts /wp-admin/edit.php3.40 ▲0.0446.27 ▼2.87
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.35 ▼1.68
Media Library /wp-admin/upload.php3.27 ▲0.0439.61 ▲2.32

Server storage [IO: ▲0.22MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woony Talk
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲11414.66 ▲0.2927.32 ▲25.6038.23 ▼0.65
Dashboard /wp-admin2,247 ▲625.80 ▼0.08115.04 ▲5.8542.17 ▼1.02
Posts /wp-admin/edit.php2,130 ▲382.07 ▲0.0436.92 ▼4.9332.92 ▼5.69
Add New Post /wp-admin/post-new.php1,546 ▲223.42 ▲5.19744.35 ▲137.2255.10 ▼1.51
Media Library /wp-admin/upload.php1,426 ▲414.25 ▲0.03102.14 ▲4.2245.51 ▲4.28

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-woony-talk/includes/woony-scripts.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/widget-woony-talk/templates/admin.php:5

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

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (28 tag instead of maximum 10)
You can look at the official readme.txt

widget-woony-talk/widget-woony-talk.php Passed 13 tests

This is the main PHP file of "Woony Talk" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
68 characters long description:
Installs Woony Talk Widget on your website. Talk with your visitors!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected154 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP52520154

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.21MB with 0.16MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/background-image.png210.17KB51.20KB▼ 75.64%