10% hull

Code Review | Hull.io

WordPress plugin Hull.io scored10%from 54 tests.

About plugin

  • Plugin page: hull
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 23, 2013
  • Latest release: Sep 23, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: rdardour (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /888 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/hull/hull-php/src/Hull/Client.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; Hull_Client has a deprecated constructor

Server metrics [RAM: ▼1.88MB] [CPU: ▼56.85ms] Passed 4 tests

Analyzing server-side resources used by Hull.io
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.365.04 ▼35.77
Dashboard /wp-admin2.12 ▼1.186.46 ▼40.68
Posts /wp-admin/edit.php2.12 ▼1.236.69 ▼41.10
Add New Post /wp-admin/post-new.php2.12 ▼3.765.75 ▼92.45
Media Library /wp-admin/upload.php2.12 ▼1.105.66 ▼53.17
Hull /wp-admin/options-general.php?page=hull-options2.136.90

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
hull_org_url
widget_recent-comments
hull_app_id
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Hull.io
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲14815.02 ▲0.7132.67 ▲30.3550.02 ▲1.54
Dashboard /wp-admin2,196 ▲165.49 ▼0.0991.82 ▼1.4639.22 ▼8.61
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0635.44 ▼3.1631.35 ▼10.61
Add New Post /wp-admin/post-new.php6,222 ▲4,68426.07 ▲3.00926.18 ▲246.1459.99 ▼0.38
Media Library /wp-admin/upload.php1,398 ▼24.19 ▲0.0494.40 ▼21.7944.48 ▼4.77
Hull /wp-admin/options-general.php?page=hull-options8121.9924.4023.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/hull/hull-php/src/Hull/Client.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; Hull_Client has a deprecated constructor
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • hull_org_url
    • hull_app_id

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=hull-options
    • > Deprecated in wp-content/plugins/hull/hull-php/src/Hull/Client.php+7
    Methods with the same name as their class will not be constructors in a future version of PHP; Hull_Client has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=hull-options
    • > Deprecated in wp-content/plugins/hull/hull-php/src/Hull/Connection.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; Hull_Connection has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=hull-options
    • > Deprecated in wp-content/plugins/hull/hull-php/src/Hull/Cache.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; Hull_Cache has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=hull-options
    • > Deprecated in wp-content/plugins/hull/hull-php/src/Hull/Event.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; Hull_Event has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=hull-options
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the hull.js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=hull-options
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the hull-init.js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
    • > GET request to /wp-admin/options-general.php?page=hull-options
    • > Deprecated in wp-content/plugins/hull/index.php+177
    implode(): Passing glue string after array is deprecated. Swap the parameters
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hull-options
    • > Notice in wp-content/plugins/hull/index.php+125
    Undefined index: hint

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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/hull/hull-php/index.php
    • > /wp-content/plugins/hull/hull-php/vendor/facebook/php-sdk/examples/with_js_sdk.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/hull/hull-php/vendor/facebook/php-sdk/tests/tests.php:18
    • > PHP Notice
      Trying to get property 'name' of non-object in wp-content/plugins/hull/hull-php/index.php on line 29
    • > PHP Fatal error
      Uncaught OAuthException: Error validating application. Application has been deleted. thrown in wp-content/plugins/hull/hull-php/vendor/facebook/php-sdk/src/base_facebook.php on line 1254
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hull/auth.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hull/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

hull/index.php 92% from 13 tests

"Hull.io" version 0.1.0'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: It is recommended to name the main PHP file as the plugin slug ("hull.php" instead of "index.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
It is important to fix the following items
  • You should never include executable (binary) or otherwise dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/hull/hull-php/vendor/facebook/php-sdk/src/fb_ca_chain_bundle.crt
3,732 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP205458393,485
Markdown3610138
JSON30088
JavaScript10016
YAML1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.88
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes24
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes00.00%
Methods269
▷ Static methods248.92%
▷ Public methods20074.35%
▷ Protected methods5420.07%
▷ Private methods155.58%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants215.38%
▷ Class constants1184.62%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin