84% blitzcrank

Code Review | Blitzcrank

WordPress plugin Blitzcrank scored84%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: 6.3.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 /687 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.29ms] Passed 4 tests

Analyzing server-side resources used by Blitzcrank
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.68 ▼5.41
Dashboard /wp-admin3.33 ▲0.0246.28 ▼7.56
Posts /wp-admin/edit.php3.38 ▲0.0250.13 ▲0.82
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.41 ▼13.01
Media Library /wp-admin/upload.php3.25 ▲0.0239.36 ▲3.70

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Blitzcrank
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.67 ▼0.911.73 ▼0.1141.60 ▼1.00
Dashboard /wp-admin2,339 ▲1365.88 ▼0.17102.33 ▲2.2137.33 ▼7.31
Posts /wp-admin/edit.php2,261 ▲1612.20 ▲0.1639.11 ▼2.0237.25 ▲1.04
Add New Post /wp-admin/post-new.php1,645 ▲8617.63 ▼0.85663.62 ▲38.3850.98 ▼0.84
Media Library /wp-admin/upload.php1,544 ▲1444.32 ▲0.12101.66 ▲3.4246.23 ▼2.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: keyboard shortcut, wp-admin, admin, shortcut

blitzcrank/blitzcrank.php Passed 13 tests

"Blitzcrank" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin314 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS227113
JavaScript213266
Stylus11061
PHP114853
Markdown17021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
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

It is recommended to compress PNG files in your plugin to 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%