73% guild-raid-progression-for-wow-and-raider-io

Code Review | Guild Raid Progression for WoW and Raider IO

WordPress plugin Guild Raid Progression for WoW and Raider IO scored73%from 54 tests.

About plugin

  • Plugin page: guild-raid-progre...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 31, 2023
  • Latest release: Nov 14, 2023
  • Number of updates: 8
  • Update frequency: every 37.8 days
  • Top authors: streamweasels (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /322 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲5.01MB] [CPU: ▲19.78ms] 75% from 4 tests

An overview of server-side resources used by Guild Raid Progression for WoW and Raider IO
The following require your attention
  • Extra RAM: The extra memory usage must be under 5MB (currently 5.01MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.89 ▲5.4260.62 ▲20.64
Dashboard /wp-admin8.91 ▲5.5681.40 ▲21.22
Posts /wp-admin/edit.php8.91 ▲5.5583.80 ▲38.50
Add New Post /wp-admin/post-new.php9.40 ▲3.51106.48 ▲9.18
Media Library /wp-admin/upload.php8.91 ▲5.6862.30 ▲28.09
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.9160.98

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 234 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
fs_accounts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
fs_debug_mode
fs_active_plugins
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Guild Raid Progression for WoW and Raider IO
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,108 ▲36115.15 ▲0.525.50 ▲3.8527.95 ▼15.19
Dashboard /wp-admin2,405 ▲2276.40 ▲0.71124.25 ▲8.0144.73 ▲0.99
Posts /wp-admin/edit.php2,334 ▲2343.52 ▲1.5556.08 ▲19.6939.10 ▲5.49
Add New Post /wp-admin/post-new.php1,564 ▲3722.17 ▼0.88691.96 ▼0.4938.98 ▼13.77
Media Library /wp-admin/upload.php1,473 ▲704.31 ▲0.1690.66 ▼3.9644.77 ▲4.08
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,3123.3148.9930.29

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/guild-raid-progression-for-wow-and-raider-io/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • fs_active_plugins
    • widget_recent-comments
    • fs_accounts
    • fs_debug_mode

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/guild-raid-progression-for-wow-and-raider-io/public/partials/raid-progression-for-raider-io-public-display.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/guild-raid-progression-for-wow-and-raider-io/admin/partials/raid-progression-for-raider-io-admin-sidebar.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/guild-raid-progression-for-wow-and-raider-io/admin/partials/raid-progression-for-raider-io-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: wow, guild, raid progression, world of warcraft, raid

guild-raid-progression-for-wow-and-raider-io/raid-progression-for-raider-io.php 85% from 13 tests

The principal PHP file in "Guild Raid Progression for WoW and Raider IO" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("guild-raid-progression-for-wow-and-raider-io.php" instead of "raid-progression-for-raider-io.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected35,376 lines of code in 154 files:
LanguageFilesBlank linesComment linesLines of code
PHP1308,23517,84234,070
Sass24233894
JavaScript74366397
CSS150015

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity77.36
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes58
▷ Abstract classes23.45%
▷ Concrete classes5696.55%
▷ Final classes00.00%
Methods1,319
▷ Static methods20115.24%
▷ Public methods91469.29%
▷ Protected methods171.29%
▷ Private methods38829.42%
Functions105
▷ Named functions105100.00%
▷ Anonymous functions00.00%
Constants146
▷ Global constants9967.81%
▷ Class constants4732.19%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/discord-logo.png2.35KB1.00KB▼ 57.64%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
admin/img/sw-full-logo.png62.43KB26.24KB▼ 57.97%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%