77% wow-progress

Code Review | WoW Progress

WordPress plugin WoW Progress scored77%from 54 tests.

About plugin

  • Plugin page: wow-progress
  • Plugin version: 1.20.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 17, 2012
  • Latest release: Nov 14, 2023
  • Number of updates: 53
  • Update frequency: every 77.0 days
  • Top authors: martinek (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /19,598 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼8.23ms] Passed 4 tests

This is a short check of server-side resources used by WoW Progress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2049.34 ▲6.65
Dashboard /wp-admin3.52 ▲0.1746.31 ▼25.09
Posts /wp-admin/edit.php3.63 ▲0.2747.61 ▼1.14
Add New Post /wp-admin/post-new.php6.12 ▲0.2381.83 ▼7.58
Media Library /wp-admin/upload.php3.44 ▲0.2135.82 ▲0.89
WoW Progress /wp-admin/options-general.php?page=wowprogress3.4931.49

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 82 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_wowprogress_widget
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
wowprogress_options

Browser metrics Passed 4 tests

A check of browser resources used by WoW Progress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,002 ▲21514.45 ▲0.1818.00 ▲15.8043.39 ▼3.12
Dashboard /wp-admin2,202 ▲215.63 ▼0.09105.18 ▼14.2944.44 ▲0.30
Posts /wp-admin/edit.php2,119 ▲192.72 ▲0.7552.09 ▲12.7738.14 ▲3.82
Add New Post /wp-admin/post-new.php1,540 ▲1423.50 ▲0.37667.25 ▲8.4663.12 ▲15.94
Media Library /wp-admin/upload.php1,416 ▲135.10 ▲0.94116.73 ▲18.9940.65 ▼1.26
WoW Progress /wp-admin/options-general.php?page=wowprogress1,3172.1537.3031.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_wowprogress_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wow-progress/wowprogress.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wow-progress/inc/admin.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=wowprogress
    • > Network (severe)
    light.css/?ver=1.20.0 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

wow-progress/wowprogress.php 85% from 13 tests

The principal PHP file in "WoW Progress" v. 1.20.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wow-progress.php" instead of "wowprogress.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,585 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON1320952
PHP212051458
CSS4273119
PO File1131351
JavaScript1205

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods735.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
71 PNG files occupy 19.41MB with 8.93MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/raids/wb_vanilla.png296.26KB113.62KB▼ 61.65%
images/raids/atbt.png297.20KB133.75KB▼ 55.00%
images/exp/dragonflight.png17.24KB17.65KB0.00%
images/raids/icc.png315.82KB151.67KB▼ 51.98%
images/raids/hof.png402.76KB155.41KB▼ 61.42%