73% chathispano

Code Review | ChatHispano

WordPress plugin ChatHispano scored73%from 54 tests.

About plugin

  • Plugin page: chathispano
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.4
  • WordPress version: 6.3.1
  • First release: Feb 1, 2017
  • Latest release: May 25, 2020
  • Number of updates: 21
  • Update frequency: every 57.4 days
  • Top authors: tonigarcia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,511 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.58ms] Passed 4 tests

A check of server-side resources used by ChatHispano
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0238.68 ▼4.50
Dashboard /wp-admin3.40 ▲0.0149.57 ▼21.51
Posts /wp-admin/edit.php3.51 ▲0.1155.45 ▲4.49
Add New Post /wp-admin/post-new.php5.98 ▲0.0586.49 ▼8.05
Media Library /wp-admin/upload.php3.32 ▲0.0540.35 ▼0.24
Webchat /wp-admin/admin.php?page=chathispano_settings_webchat3.2933.30
Información /wp-admin/admin.php?page=chathispano_settings3.2931.84

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 13 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
chathispano_webchat_nick
chathispano_webchat_height
widget_theysaidso_widget
chathispano_webchat_width
chathispano_webchat_chan
db_upgraded
chathispano_webchat_layout
...

Browser metrics Passed 4 tests

A check of browser resources used by ChatHispano
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9014.06 ▼0.471.70 ▲0.0439.66 ▼5.24
Dashboard /wp-admin2,220 ▲435.65 ▼0.0078.87 ▼20.9971.88 ▲26.63
Posts /wp-admin/edit.php2,125 ▲252.04 ▲0.0238.92 ▲3.5534.48 ▼5.47
Add New Post /wp-admin/post-new.php1,560 ▲3423.10 ▼0.35761.17 ▲32.6452.34 ▼2.00
Media Library /wp-admin/upload.php1,425 ▲224.21 ▲0.0697.60 ▼2.5972.05 ▲27.07
Webchat /wp-admin/admin.php?page=chathispano_settings_webchat1,0582.0024.3237.24
Información /wp-admin/admin.php?page=chathispano_settings8391.9723.8428.33

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
These items require your attention
  • This plugin does not fully uninstall, leaving 13 options in the database
    • chathispano_webchat_nick
    • chathispano_webchat_height
    • chathispano_webchat_realname
    • chathispano_webchat_layout
    • theysaidso_admin_options
    • chathispano_webchat_chan
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • ...

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
These errors were triggered by the plugin
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chathispano_settings
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=chathispano_settings
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/chathispano/public/index.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/chathispano/chathispano.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: irchispano, chat, chathispano, network, people...

chathispano/chathispano.php Passed 13 tests

The principal PHP file in "ChatHispano" v. 1.2.2 is loaded by WordPress automatically on each request
69 characters long description:
Plugin de Wordpress para poner Webchat de ChatHispano en su Wordpress

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
Good job! No executable or dangerous file extensions detected318 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35242318

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.61KB0.68KB0.00%