74% my-quakenet-irc

Code Review | My QuakeNet IRC

WordPress plugin My QuakeNet IRC scored74%from 54 tests.

About plugin

  • Plugin page: my-quakenet-irc
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 12, 2011
  • Latest release: Jul 2, 2012
  • Number of updates: 47
  • Update frequency: every 6.9 days
  • Top authors: KwarK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,948 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
This plugin's installer ran successfully

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.83ms] Passed 4 tests

Server-side resources used by My QuakeNet IRC
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.37 ▼34.56
Dashboard /wp-admin2.05 ▼1.266.27 ▼41.05
Posts /wp-admin/edit.php2.05 ▼1.317.53 ▼39.16
Add New Post /wp-admin/post-new.php2.05 ▼3.845.96 ▼92.55
Media Library /wp-admin/upload.php2.05 ▼1.187.17 ▼26.13

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by My QuakeNet IRC
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲11614.64 ▲0.281.88 ▲0.3041.63 ▼7.49
Dashboard /wp-admin2,224 ▲384.89 ▼0.05100.09 ▼10.5540.85 ▼2.41
Posts /wp-admin/edit.php2,107 ▲182.04 ▼0.0142.35 ▲6.9036.24 ▼2.85
Add New Post /wp-admin/post-new.php1,543 ▲2923.27 ▲5.67569.81 ▼44.7445.50 ▼2.37
Media Library /wp-admin/upload.php1,403 ▲154.18 ▼0.0394.01 ▼3.5740.66 ▼3.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the irc_admin_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Everything seems fine, however this is by no means 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 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 wp_die() in wp-content/plugins/my-quakenet-irc/my_quake_net_irc.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Screenshot my-quakenet-admin) image missing
The official readme.txt might help

my-quakenet-irc/my_quake_net_irc.php 92% from 13 tests

The main file in "My QuakeNet IRC" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("my-quakenet-irc.php" instead of "my_quake_net_irc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected304 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13633200
PO File24613288
JavaScript10111
CSS2015

PHP code Passed 2 tests

An overview of 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.31
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin