78% jrm-killboard

Code Review | JRM Killboard

WordPress plugin JRM Killboard scored 78% from 54 tests.

About plugin

  • Plugin page: jrm-killboard
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.12-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 31, 2019
  • Latest release: Mar 7, 2020
  • Number of updates: 7
  • Update frequency: every 9.6 days
  • Top authors: jrmarco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.39MB] [CPU: ▼1.89ms] Passed 4 tests

This is a short check of server-side resources used by JRM Killboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1837.77 ▼3.47
Dashboard /wp-admin3.81 ▲0.5046.04 ▼2.84
Posts /wp-admin/edit.php3.86 ▲0.5047.00 ▲2.41
Add New Post /wp-admin/post-new.php6.33 ▲0.4485.27 ▼3.64
Media Library /wp-admin/upload.php3.67 ▲0.4443.15 ▲7.50
Configurations /wp-admin/admin.php?page=jrmevekillboard_settings3.7141.88
Graphics /wp-admin/admin.php?page=jrmevekillboard_graphics3.7634.77
Items /wp-admin/admin.php?page=jrmevekillboard_items3.6635.45
Killboard /wp-admin/admin.php?page=jrmevekillboard_main3.6935.75

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 5 new tables, 44 new options
New tables
wp_jrm_corporation
wp_jrm_capsuler
wp_jrm_queue
wp_jrm_killboard
wp_jrm_item
New WordPress options
jrm_killboard_esi_client_id
jrm_killboard_footer_color
jrm_killboard_deaths_bg
jrm_killboard_btn_align
jrm_killboard_table_header_text
jrm_killboard_footer_text
db_upgraded
jrm_killboard_inspect_items
jrm_killboard_cronjob_secret
jrm_killboard_title
...

Browser metrics Passed 4 tests

An overview of browser requirements for JRM Killboard
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9914.74 ▲0.301.73 ▼0.1439.32 ▼7.20
Dashboard /wp-admin2,240 ▲514.90 ▼0.0895.28 ▼36.3166.83 ▲22.19
Posts /wp-admin/edit.php2,126 ▲372.04 ▼0.0134.05 ▼3.8831.32 ▼3.64
Add New Post /wp-admin/post-new.php1,695 ▲17621.83 ▼1.54709.33 ▲68.1347.60 ▼2.19
Media Library /wp-admin/upload.php1,422 ▲344.22 ▲0.01104.41 ▲7.2344.15 ▲1.39
Configurations /wp-admin/admin.php?page=jrmevekillboard_settings1,1542.0929.0767.92
Graphics /wp-admin/admin.php?page=jrmevekillboard_graphics1,6892.0627.2952.60
Items /wp-admin/admin.php?page=jrmevekillboard_items9842.2324.6143.95
Killboard /wp-admin/admin.php?page=jrmevekillboard_main9702.0724.9736.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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

SRP 0% 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 return non-empty strings:
    • > /wp-content/plugins/jrm-killboard/jrmkb_killboard.php
  • 11× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jrm-killboard/admin/partials/main_graphics.php:2
    • > PHP Notice
      Undefined variable: titleAlign in wp-content/plugins/jrm-killboard/public/partials/frontend.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jrm-killboard/admin/partials/main_items.php:2
    • > PHP Notice
      Undefined variable: titleAlign in wp-content/plugins/jrm-killboard/public/partials/frontend.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/jrm-killboard/public/jrmkillboard_public.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/jrm-killboard/admin/partials/main_panel.php:5
    • > PHP Notice
      Undefined variable: titleColor in wp-content/plugins/jrm-killboard/public/partials/frontend.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/jrm-killboard/admin/partials/main_settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/jrm-killboard/admin/partials/copyright_footer.php:2
    • > PHP Notice
      Undefined variable: titleText in wp-content/plugins/jrm-killboard/public/partials/frontend.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: game, eve online, killboard, eve, eveonline

jrm-killboard/jrmkb_killboard.php 77% from 13 tests

"JRM Killboard" version 1.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jrm-killboard.php" instead of "jrmkb_killboard.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 376 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,745 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP123425222,817
JavaScript25741431
PO File1189214417
Markdown126079
CSS1061

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity77.33
▷ Minimum class complexity22.00
▷ Maximum class complexity154.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods65
▷ Static methods2538.46%
▷ Public methods5381.54%
▷ Protected methods00.00%
▷ Private methods1218.46%
Functions33
▷ Named functions33100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants17.69%
▷ Class constants1292.31%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/spaceship.png0.41KB0.33KB▼ 18.75%