10% warcraft-bundle

Code Review | Warcraft Bundle

WordPress plugin Warcraft Bundle scored10%from 54 tests.

About plugin

  • Plugin page: warcraft-bundle
  • Plugin version: 2.3.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 28, 2012
  • Latest release: Nov 3, 2012
  • Number of updates: 91
  • Update frequency: every 0.4 days
  • Top authors: KwarK (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,662 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/warcraft-bundle/wb-main-fork.php+54
    Use of undefined constant home_url - assumed 'home_url' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼0.97MB] [CPU: ▼45.04ms] Passed 4 tests

Analyzing server-side resources used by Warcraft Bundle
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.01 ▼0.457.56 ▼29.96
Dashboard /wp-admin3.03 ▼0.278.89 ▼35.73
Posts /wp-admin/edit.php3.03 ▼0.327.82 ▼38.34
Add New Post /wp-admin/post-new.php3.03 ▼2.8510.21 ▼76.12
Media Library /wp-admin/upload.php3.03 ▼0.208.61 ▼22.32

Server storage [IO: ▲117.18MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • Try to limit filesystem usage to 25MB (currently using 117.18MB)
Filesystem: 42,319 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_wb_achievements_widget
can_compress_scripts
widget_recent-posts
widget_wb_news_widget
widget_wb_server_widget
db_upgraded
widget_wb_perks_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Warcraft Bundle
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲21113.81 ▼0.986.43 ▲4.7738.26 ▼0.62
Dashboard /wp-admin2,232 ▲466.06 ▲1.12101.41 ▼10.0738.74 ▼1.23
Posts /wp-admin/edit.php2,118 ▲292.11 ▲0.1441.09 ▼0.4231.91 ▲0.77
Add New Post /wp-admin/post-new.php1,537 ▲223.24 ▼0.11602.80 ▼73.4052.73 ▼3.90
Media Library /wp-admin/upload.php1,414 ▲264.47 ▲0.3898.72 ▼3.7742.02 ▼5.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/warcraft-bundle/wb-main-fork.php+54
    Use of undefined constant home_url - assumed 'home_url' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 10 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_wb_server_widget
    • widget_wb_achievements_widget
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_wb_perks_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_wb_news_widget

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 wp_die() in wp-content/plugins/warcraft-bundle/wb-main-fork.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/warcraft-bundle/pages-admin/admin-wb-main-fork.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Currently no screenshot) image missing
The official readme.txt might help

warcraft-bundle/wb-main-fork.php 85% from 13 tests

"Warcraft Bundle" version 2.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 328 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("warcraft-bundle.php" instead of "wb-main-fork.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected5,572 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP189696863,914
CSS41221887
JavaScript745185771

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.80
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods167
▷ Static methods00.00%
▷ Public methods14888.62%
▷ Protected methods00.00%
▷ Private methods1911.38%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
42222 PNG files occupy 116.02MB with 26.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/56/ability_hunter_readiness.png3.61KB3.06KB▼ 15.06%
images/18/inv_mace_88.png0.98KB1.18KB0.00%
images/36/inv_gauntlets_81red.png2.04KB1.72KB▼ 15.75%
api-wow/img/emblems/emblem_179.png10.58KB5.31KB▼ 49.86%
images/36/inv_helmet_04.png3.04KB2.00KB▼ 34.19%