83% pblc-chat-embed-creator

Code Review | PBLC Embed Chat Creator

WordPress plugin PBLC Embed Chat Creator scored83%from 54 tests.

About plugin

  • Plugin page: pblc-chat-embed-c...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-1.0.2
  • WordPress version: 6.3.1
  • First release: Aug 1, 2016
  • Latest release: Aug 5, 2016
  • Number of updates: 52
  • Update frequency: every 0.1 days
  • Top authors: marobins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /599 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.79ms] Passed 4 tests

A check of server-side resources used by PBLC Embed Chat Creator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.70 ▼15.93
Dashboard /wp-admin3.31 ▲0.0145.50 ▼4.79
Posts /wp-admin/edit.php3.36 ▲0.0046.21 ▼6.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.53 ▼4.11
Media Library /wp-admin/upload.php3.23 ▲0.0031.25 ▼1.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for PBLC Embed Chat Creator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼0.971.64 ▼0.0139.90 ▼7.00
Dashboard /wp-admin2,206 ▲184.88 ▲0.02108.58 ▼12.6040.67 ▼4.11
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0638.73 ▼1.4632.32 ▼5.39
Add New Post /wp-admin/post-new.php1,538 ▲523.13 ▼0.22680.09 ▲28.5367.25 ▲3.39
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0395.64 ▼12.0143.54 ▲0.69

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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_shortcode() in wp-content/plugins/pblc-chat-embed-creator/embedshortcode.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: public, chat

pblc-chat-embed-creator/index.php 77% from 13 tests

The main PHP file in "PBLC Embed Chat Creator" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: Name the main plugin file the same as the plugin slug ("pblc-chat-embed-creator.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected384 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS1120147
JavaScript2921117
PHP3283285
HTML13235

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
Public-Logo.png0.75KB0.68KB▼ 8.26%