10% ja-wowtoken

Code Review | ja WowToken

WordPress plugin ja WowToken scored10%from 54 tests.

About plugin

  • Plugin page: ja-wowtoken
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.2.3
  • WordPress version: 6.3.1
  • First release: Aug 1, 2015
  • Latest release: Aug 1, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Kaouthia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,285 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Error in wp-content/plugins/ja-wowtoken/index.php+198
    Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/ja-wowtoken/index.php:198
    Stack trace:
    #0 wp-includes/class-wp-hook.php(312): {closure}()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(720): do_action()

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.90ms] Passed 4 tests

A check of server-side resources used by ja WowToken
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.92 ▲4.95
Dashboard /wp-admin3.35 ▲0.0544.72 ▼4.88
Posts /wp-admin/edit.php3.40 ▲0.0546.77 ▼4.69
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.84 ▼1.96
Media Library /wp-admin/upload.php3.27 ▲0.0534.30 ▼4.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ja WowToken
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.20 ▼1.181.72 ▼0.0342.93 ▼0.27
Dashboard /wp-admin2,206 ▲154.88 ▼1.02106.69 ▲4.2641.85 ▲1.15
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0740.62 ▲4.3636.47 ▲4.50
Add New Post /wp-admin/post-new.php1,542 ▲2518.35 ▲0.75600.43 ▼95.0860.78 ▲7.69
Media Library /wp-admin/upload.php1,388 ▲34.30 ▲0.1292.23 ▼6.2945.02 ▲1.77

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_jawowtoken_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ja-wowtoken/index.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: wowtoken, wow, guild, widget, plugin...

ja-wowtoken/index.php 85% from 13 tests

The main file in "ja WowToken" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("ja-wowtoken.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin162 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14043149
CSS12013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
goldicon.png0.63KB0.54KB▼ 13.64%