84% hulkshare-short-code

Code Review | Hulkshare Shortcode

WordPress plugin Hulkshare Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: hulkshare-short-code
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Sep 9, 2013
  • Latest release: Sep 25, 2013
  • Number of updates: 6
  • Update frequency: every 2.7 days
  • Top authors: hulkshare (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,863 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.27ms] Passed 4 tests

An overview of server-side resources used by Hulkshare Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.50 ▼0.57
Dashboard /wp-admin3.34 ▼0.0047.79 ▼14.33
Posts /wp-admin/edit.php3.40 ▲0.0444.12 ▲3.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.85 ▼13.80
Media Library /wp-admin/upload.php3.27 ▲0.0434.12 ▼4.36
Hulkshare /wp-admin/options-general.php?page=hulkshare-shortcode3.2330.13

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Hulkshare Shortcode: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.131.83 ▲0.0242.28 ▼4.39
Dashboard /wp-admin2,202 ▲255.62 ▼0.0187.90 ▼18.4038.40 ▼9.47
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0034.01 ▼8.0934.55 ▼4.35
Add New Post /wp-admin/post-new.php1,540 ▲418.09 ▼0.48631.37 ▼36.5179.01 ▲3.25
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0797.05 ▼23.6443.80 ▼5.04
Hulkshare /wp-admin/options-general.php?page=hulkshare-shortcode8892.0123.4127.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/hulkshare-short-code/hulkshare.php:223

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 96% 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: player, shortcode, flash, html5, hulkshare

hulkshare-short-code/hulkshare.php 92% from 13 tests

The primary PHP file in "Hulkshare Shortcode" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hulkshare-short-code.php" instead of "hulkshare.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin155 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
PNG images were not found in this plugin