83% handtalk

Code Review | Hand Talk

WordPress plugin Hand Talk scored83%from 54 tests.

About plugin

  • Plugin page: handtalk
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.6
  • WordPress version: 6.3.1
  • First release: Aug 9, 2016
  • Latest release: Jan 13, 2021
  • Number of updates: 26
  • Update frequency: every 62.5 days
  • Top authors: rodrigobastos (53.85%)madsoncosta (46.15%)lucianogouveia (7.69%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.43ms] Passed 4 tests

Analyzing server-side resources used by Hand Talk
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.18 ▲4.98
Dashboard /wp-admin3.35 ▲0.0548.43 ▲0.50
Posts /wp-admin/edit.php3.47 ▲0.1143.39 ▼5.85
Add New Post /wp-admin/post-new.php5.93 ▲0.0597.62 ▼9.78
Media Library /wp-admin/upload.php3.28 ▲0.0537.56 ▲1.42
Hand Talk /wp-admin/options-general.php?page=wpht3.2434.64

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
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,901 ▲16616.86 ▲2.5859.97 ▲57.7643.61 ▲6.18
Dashboard /wp-admin2,213 ▲254.91 ▼0.19101.75 ▼8.3054.42 ▲7.14
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0337.29 ▼3.5134.71 ▼0.38
Add New Post /wp-admin/post-new.php1,547 ▲1418.35 ▼5.07629.40 ▲21.2566.06 ▲18.66
Media Library /wp-admin/upload.php1,395 ▲134.20 ▲0.0494.85 ▼6.5242.17 ▲0.49
Hand Talk /wp-admin/options-general.php?page=wpht8402.0727.8026.16

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/handtalk/wpht.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: hand talk, acessibilidade, surdos, libras

handtalk/wpht.php 69% from 13 tests

"Hand Talk" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages/")
  • Description: Please keep the plugin description shorter than 140 characters (currently 193 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("handtalk.php" instead of "wpht.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin198 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32110163
CSS12025
JavaScript12010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods16100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/computer.png104.43KB29.87KB▼ 71.40%
images/icon-48x48.png6.19KB2.02KB▼ 67.43%
images/icon.png7.29KB3.38KB▼ 53.64%