67% hand-talk

Code Review | Hand Talk

WordPress plugin Hand Talk scored67%from 54 tests.

About plugin

  • Plugin page: hand-talk
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.8
  • WordPress version: 6.3.1
  • First release: Jan 26, 2014
  • Latest release: May 13, 2014
  • Number of updates: 13
  • Update frequency: every 18.2 days
  • Top authors: gmmcal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,108 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.88MB] [CPU: ▼33.31ms] Passed 4 tests

This is a short check of server-side resources used by Hand Talk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.43 ▼3.32
Dashboard /wp-admin3.07 ▼0.2725.09 ▼39.41
Posts /wp-admin/edit.php3.07 ▼0.2827.56 ▼16.13
Add New Post /wp-admin/post-new.php3.07 ▼2.8123.73 ▼73.65
Media Library /wp-admin/upload.php3.07 ▼0.1626.78 ▼4.03
Hand Talk /wp-admin/options-general.php?page=wpht3.0725.80

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Hand Talk
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲5813.21 ▼1.371.89 ▼0.0844.95 ▲2.94
Dashboard /wp-admin2,210 ▲224.87 ▼0.99104.25 ▼11.5639.64 ▼7.05
Posts /wp-admin/edit.php2,093 ▲71.99 ▲0.0033.68 ▼4.5134.67 ▼0.19
Add New Post /wp-admin/post-new.php1,539 ▲2023.19 ▲0.07666.27 ▼14.4753.86 ▼4.58
Media Library /wp-admin/upload.php1,386 ▼54.22 ▲0.0496.56 ▼3.4342.71 ▼1.25
Hand Talk /wp-admin/options-general.php?page=wpht8682.0928.4925.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/hand-talk/settings.class.php+47
    Undefined index: latest
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wpht
    • > Notice in wp-content/plugins/hand-talk/settings.class.php+47
    Undefined index: latest
    • > GET request to /wp-admin/options-general.php?page=wpht
    • > Notice in wp-content/plugins/hand-talk/settings.class.php+53
    Undefined index: version

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hand-talk/wpht.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: hand talk, surdos, acessibilidade

hand-talk/wpht.php 77% from 13 tests

The main PHP script in "Hand Talk" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hand-talk.php" instead of "wpht.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin271 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP31810186
PO File1131350
CSS12025
JavaScript10010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity7.00
▷ Minimum class complexity6.00
▷ Maximum class complexity8.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.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 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.49MB with 0.26MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/bg-top.png397.00KB237.21KB▼ 40.25%
images/computer.png104.43KB29.87KB▼ 71.40%
images/icon.png3.26KB1.72KB▼ 47.22%