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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 5.04 ▼35.77 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.46 ▼40.68 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 6.69 ▼41.10 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 5.75 ▼92.45 |
Media Library /wp-admin/upload.php | 2.12 ▼1.10 | 5.66 ▼53.17 |
Hull /wp-admin/options-general.php?page=hull-options | 2.13 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲148 | 15.02 ▲0.71 | 32.67 ▲30.35 | 50.02 ▲1.54 |
Dashboard /wp-admin | 2,196 ▲16 | 5.49 ▼0.09 | 91.82 ▼1.46 | 39.22 ▼8.61 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.06 | 35.44 ▼3.16 | 31.35 ▼10.61 |
Add New Post /wp-admin/post-new.php | 6,222 ▲4,684 | 26.07 ▲3.00 | 926.18 ▲246.14 | 59.99 ▼0.38 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.19 ▲0.04 | 94.40 ▼21.79 | 44.48 ▼4.77 |
Hull /wp-admin/options-general.php?page=hull-options | 812 | 1.99 | 24.40 | 23.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
- > PHP Fatal error
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
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
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 545 | 839 | 3,485 |
Markdown | 3 | 61 | 0 | 138 |
JSON | 3 | 0 | 0 | 88 |
JavaScript | 1 | 0 | 0 | 16 |
YAML | 1 | 0 | 0 | 5 |
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 code | 0.20 |
Average class complexity | 10.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 269 | |
▷ Static methods | 24 | 8.92% |
▷ Public methods | 200 | 74.35% |
▷ Protected methods | 54 | 20.07% |
▷ Private methods | 15 | 5.58% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 2 | 15.38% |
▷ Class constants | 11 | 84.62% |
▷ Public constants | 11 | 100.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