84% world-of-warcraft-recruitment-widget

Code Review | World of Warcraft Recruitment Widget

WordPress plugin World of Warcraft Recruitment Widget scored 84% from 54 tests.

About plugin

  • Plugin page: world-of-warcraft...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2015
  • Latest release: Mar 23, 2015
  • Number of updates: 18
  • Update frequency: every 3.0 days
  • Top authors: yanitor (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 3,728 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.87ms] Passed 4 tests

Server-side resources used by World of Warcraft Recruitment Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.01 ▼0.84
Dashboard /wp-admin3.34 ▲0.0443.55 ▼5.77
Posts /wp-admin/edit.php3.39 ▲0.0447.19 ▲3.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.76 ▼9.71
Media Library /wp-admin/upload.php3.26 ▲0.0432.68 ▲0.86

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_world_of_warcraft_recruitment_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for World of Warcraft Recruitment Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.34 ▼1.081.84 ▼0.3147.22 ▲1.10
Dashboard /wp-admin2,203 ▲154.89 ▼0.03110.80 ▼10.4238.10 ▼6.88
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0340.82 ▲4.8534.58 ▲1.21
Add New Post /wp-admin/post-new.php1,534 ▲1423.45 ▲0.41648.47 ▼32.2154.81 ▲1.98
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.11103.53 ▼5.3045.83 ▼2.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_world_of_warcraft_recruitment_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/world-of-warcraft-recruitment-widget/world-of-warcraft-recruitment-widget.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: wow, recruitment, warcraft, widget, world of warcaft...

world-of-warcraft-recruitment-widget/world-of-warcraft-recruitment-widget.php Passed 13 tests

The main PHP script in "World of Warcraft Recruitment Widget" version 1.1.5 is automatically included on every request by WordPress
45 characters long description:
A simple to use WoW Recruitment Widget Plugin

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
There were no executable files found in this plugin120 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1262590
PO File15829
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG files were detected