73% pz-talk

Code Review | Pz-Talk

WordPress plugin Pz-Talk scored73%from 54 tests.

About plugin

  • Plugin page: pz-talk
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3
  • WordPress version: 6.3.1
  • First release: Jan 30, 2018
  • Latest release: Nov 17, 2019
  • Number of updates: 33
  • Update frequency: every 19.9 days
  • Top authors: poporon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,665 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.06MB] [CPU: ▼4.46ms] Passed 4 tests

This is a short check of server-side resources used by Pz-Talk
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.24 ▼1.26
Dashboard /wp-admin3.38 ▲0.0852.17 ▼4.37
Posts /wp-admin/edit.php3.50 ▲0.1457.66 ▲8.34
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.39 ▼12.14
Media Library /wp-admin/upload.php3.29 ▲0.0536.91 ▼0.06
Pz Talk /wp-admin/options-general.php?page=pz-talk-settings3.3735.99

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Pz-Talk
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,010 ▲24914.90 ▲0.671.78 ▲0.0552.94 ▲14.08
Dashboard /wp-admin2,408 ▲2316.15 ▲0.45121.84 ▲32.3637.34 ▼0.41
Posts /wp-admin/edit.php2,342 ▲2423.47 ▲1.4353.35 ▲16.1134.91 ▼3.57
Add New Post /wp-admin/post-new.php1,607 ▲7623.49 ▲0.17660.61 ▲7.2534.99 ▼26.45
Media Library /wp-admin/upload.php1,477 ▲804.27 ▲0.0585.92 ▼22.7345.30 ▼0.70
Pz Talk /wp-admin/options-general.php?page=pz-talk-settings1,3843.0142.5434.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=pz-talk-settings
    • > Notice in wp-content/plugins/pz-talk/lib/pz-talk-settings.php+134
    Undefined index: url-0

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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pz-talk/pz-talk.php:35

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=pz-talk-settings
    • > Javascript (severe) in unknown
    /wp-content/plugins/pz-talk/js/admin.js?ver=6.3.1 0:0 Uncaught TypeError: $ is not a function

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: html, text

pz-talk/pz-talk.php Passed 13 tests

The primary PHP file in "Pz-Talk" version 1.1.2 is used by WordPress to initiate all plugin functionality
78 characters long description:
顔アイコンと吹き出しを表示させて会話を表現できます。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,030 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP34933437
CSS260246
JavaScript52118240
PO File1334662107

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/button.png0.27KB0.15KB▼ 44.32%
img/unknown.png1.44KB0.71KB▼ 50.68%
img/unknown2.png0.42KB0.23KB▼ 45.27%
img/button.png0.27KB0.15KB▼ 44.32%