10% world-of-warcraft-pvp-widget

Code Review | World of Warcraft PvP Widget

WordPress plugin World of Warcraft PvP Widget scored 10% from 53 tests.

About plugin

  • Plugin page: world-of-warcraft...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 5.8.1
  • First release: Aug 2, 2013
  • Latest release: Aug 16, 2013
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: Freika (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 700 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/world-of-warcraft-pvp-widget/wow-pvp-widget.php+266
    syntax error, unexpected end of file

Server metrics [RAM: ▼0.00MB] [CPU: ▼268.76ms] Passed 4 tests

An overview of server-side resources used by World of Warcraft PvP Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1141.82 ▲21.96
Dashboard /wp-admin3.06 ▲0.0043.83 ▼6.27
Posts /wp-admin/edit.php3.11 ▲0.0042.69 ▲5.67
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.35 ▼1,067.97
Media Library /wp-admin/upload.php3.00 ▼0.0133.20 ▼6.45

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for World of Warcraft PvP Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,673 ▲6715.77 ▲0.279.16 ▲1.4550.89 ▲4.66
Dashboard /wp-admin2,927 ▲775.89 ▲0.13136.99 ▲4.62100.59 ▲7.63
Posts /wp-admin/edit.php2,703 ▼32.70 ▲0.0264.20 ▼1.1490.04 ▲2.13
Add New Post /wp-admin/post-new.php1,653 ▼018.69 ▼0.06352.91 ▼16.05107.48 ▼3.80
Media Library /wp-admin/upload.php1,772 ▼05.02 ▲0.03141.00 ▼16.77113.20 ▼3.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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 items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/world-of-warcraft-pvp-widget/snippets.php
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/world-of-warcraft-pvp-widget/snippets.php on line 54
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/world-of-warcraft-pvp-widget/snippets.php on line 2
    • > PHP Notice
      Undefined variable: array in wp-content/plugins/world-of-warcraft-pvp-widget/snippets.php on line 54
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/world-of-warcraft-pvp-widget/wow-pvp-widget.php on line 266
    • > PHP Notice
      Undefined variable: array in wp-content/plugins/world-of-warcraft-pvp-widget/snippets.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: The official readme.txt is a good inspiration

world-of-warcraft-pvp-widget/wow-pvp-widget.php 92% from 13 tests

The primary PHP file in "World of Warcraft PvP Widget" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("world-of-warcraft-pvp-widget.php" instead of "wow-pvp-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected292 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26116286
CSS1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.72
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin