94% blitzcrank

Code Review | Blitzcrank

WordPress plugin Blitzcrank scored 94% from 54 tests.

About plugin

  • Plugin page: blitzcrank
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 5.8.1
  • First release: Mar 27, 2014
  • Latest release: Mar 27, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: jensnilsson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 565 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼182.61ms] Passed 4 tests

An overview of server-side resources used by Blitzcrank
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0223.53 ▲2.01
Dashboard /wp-admin3.08 ▲0.0228.98 ▼10.42
Posts /wp-admin/edit.php3.17 ▲0.0628.54 ▼2.85
Add New Post /wp-admin/post-new.php5.44 ▼0.0165.55 ▼718.79
Media Library /wp-admin/upload.php3.03 ▲0.0224.76 ▲1.64

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Blitzcrank: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,822 ▲22116.34 ▲0.354.91 ▲0.1075.36 ▼9.09
Dashboard /wp-admin3,089 ▲1936.31 ▲0.19115.69 ▼13.66164.52 ▼9.32
Posts /wp-admin/edit.php2,951 ▲2113.37 ▲0.1364.92 ▲0.96136.40 ▼4.16
Add New Post /wp-admin/post-new.php3,926 ▲11118.66 ▼0.40418.89 ▼28.62159.33 ▼3.68
Media Library /wp-admin/upload.php1,931 ▲1825.60 ▲0.05148.96 ▼7.57184.20 ▼8.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blitzcrank/blitzcrank.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: wp-admin, shortcut, keyboard shortcut, admin

blitzcrank/blitzcrank.php Passed 13 tests

Analyzing the main PHP file in "Blitzcrank" version 1.0.0
67 characters long description:
Jump around wp-admin in a blitz! Show the help-section by hitting ?

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 detected314 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS227113
JavaScript213266
Stylus11061
PHP114853
Markdown17021

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
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
css/bg.png0.91KB0.09KB▼ 89.57%