58% powies-irc-chat

Code Review | Powie's IRC Chat

WordPress plugin Powie's IRC Chat scored58%from 54 tests.

About plugin

  • Plugin page: powies-irc-chat
  • Plugin version: 0.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8
  • WordPress version: 6.3.1
  • First release: Jan 6, 2013
  • Latest release: Dec 19, 2013
  • Number of updates: 13
  • Update frequency: every 29.9 days
  • Top authors: PowieT (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /6,743 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.95MB] [CPU: ▼36.12ms] Passed 4 tests

Server-side resources used by Powie's IRC Chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0131.00 ▼7.11
Dashboard /wp-admin3.00 ▼0.3122.59 ▼25.00
Posts /wp-admin/edit.php3.00 ▼0.3622.92 ▼22.76
Add New Post /wp-admin/post-new.php3.00 ▼2.8922.31 ▼82.58
Media Library /wp-admin/upload.php3.00 ▼0.2322.03 ▼14.14
PIRC Settings /wp-admin/options-general.php?page=powies-irc-chat/pirc_settings.php3.0022.45

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Powie's IRC Chat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.18 ▼0.181.48 ▼0.1244.06 ▲7.16
Dashboard /wp-admin2,199 ▲195.62 ▼0.0285.00 ▼3.1538.31 ▼3.88
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0438.22 ▲3.4333.95 ▲2.28
Add New Post /wp-admin/post-new.php1,531 ▲523.13 ▲2.11687.57 ▲13.6849.20 ▼11.43
Media Library /wp-admin/upload.php1,398 ▼54.23 ▲0.0295.60 ▼10.2642.25 ▼6.23
PIRC Settings /wp-admin/options-general.php?page=powies-irc-chat/pirc_settings.php1,0793.5272.6838.48

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
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=powies-irc-chat/pirc_settings.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/powies-irc-chat/powies-irc-chat.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/powies-irc-chat/pirc_settings.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: irc, chat, shortcode

powies-irc-chat/powies-irc-chat.php Passed 13 tests

The primary PHP file in "Powie's IRC Chat" version 0.9.2 is used by WordPress to initiate all plugin functionality
30 characters long description:
IRC Chat with Coolsmile Applet

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Please fix the following items
  • Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
    • .jar - Java Archive in Firefox, IE, Chrome, Safari
      • wp-content/plugins/powies-irc-chat/chat/EIRC-cfg.jar
      • wp-content/plugins/powies-irc-chat/chat/EIRC-sfx.jar
      • wp-content/plugins/powies-irc-chat/chat/EIRC.jar
660 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
HTML2922438
PHP21229165
PO File1171757

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin