Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.76MB] [CPU: ▼305.29ms] Passed 4 tests
Analyzing server-side resources used by Advisr Toolbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 57.20 ▲7.78 |
Dashboard /wp-admin | 3.48 ▲0.07 | 35.69 ▲3.70 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 38.23 ▲2.75 |
Add New Post /wp-admin/post-new.php | 3.73 ▼3.24 | 48.05 ▼1,229.02 |
Media Library /wp-admin/upload.php | 3.36 ▲0.07 | 25.92 ▲1.42 |
Add New Team Member /wp-admin/post-new.php?post_type=advisr-team-member | 3.70 | 41.65 |
Advisr Toolbox /wp-admin/options-general.php?page=advisr-toolbox | 3.41 | 23.62 |
Team from Wordpress /wp-admin/edit.php?post_type=advisr-team-member | 3.40 | 25.45 |
Team from Advisr (Brokers) /wp-admin/edit.php?post_type=advisr-team-member&page=advisr-brokers | 3.38 | 22.27 |
Server storage [IO: ▲5.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 91 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advisr Toolbox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,995 ▲241 | 16.76 ▲0.89 | 12.41 ▲6.65 | 2.50 ▼0.60 |
Dashboard /wp-admin | 2,941 ▲80 | 6.45 ▲0.16 | 118.21 ▼19.06 | 158.12 ▼6.48 |
Posts /wp-admin/edit.php | 2,741 ▲47 | 3.44 ▲0.02 | 63.90 ▲0.91 | 142.82 ▼3.55 |
Add New Post /wp-admin/post-new.php | 4,080 ▲2,419 | 9.88 ▼8.39 | 221.58 ▼192.64 | 212.02 ▲46.52 |
Media Library /wp-admin/upload.php | 1,748 ▲50 | 5.73 ▲0.02 | 125.30 ▼18.13 | 185.05 ▼3.54 |
Add New Team Member /wp-admin/post-new.php?post_type=advisr-team-member | 3,131 | 10.42 | 197.11 | 200.27 |
Advisr Toolbox /wp-admin/options-general.php?page=advisr-toolbox | 1,472 | 2.63 | 55.44 | 114.24 |
Team from Wordpress /wp-admin/edit.php?post_type=advisr-team-member | 1,414 | 3.35 | 60.18 | 113.74 |
Team from Advisr (Brokers) /wp-admin/edit.php?post_type=advisr-team-member&page=advisr-brokers | 1,054 | 2.82 | 53.43 | 112.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=advisr-team-member&page=advisr-brokers
- > Notice in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-advisr-brokers-display.php+28
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Notice in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-admin-display.php+30
Undefined index: email
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Notice in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-admin-display.php+31
Undefined index: password
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Notice in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-admin-display.php+176
Undefined index: submit
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Notice in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-admin-display.php+50
Undefined variable: response
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Notice in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-admin-display.php+52
Trying to get property 'token' of non-object
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Notice in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-admin-display.php+53
Trying to get property 'message' of non-object
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Notice in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-admin-display.php+177
Undefined index: slider_text_color
SRP 0% 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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/advisr-toolbox/public/partials/advisr-toolbox-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-admin-display.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/advisr-toolbox/admin/partials/advisr-toolbox-advisr-brokers-display.php:19
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=advisr-toolbox 256 The specified value "#000" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/edit.php?post_type=advisr-team-member&page=advisr-brokers
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=advisr-team-member&page=advisr-brokers 446:29 Uncaught SyntaxError: Unexpected token ';'
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Requires php: Version format is invalid
advisr-toolbox/advisr-toolbox.php Passed 13 tests
"Advisr Toolbox" version 2.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
Connect your native data with Advisr data to create dynamic team pages and more.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected39,213 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 16 | 1,997 | 190 | 22,227 |
JavaScript | 15 | 2,303 | 1,954 | 9,196 |
SVG | 3 | 0 | 0 | 2,677 |
Sass | 1 | 56 | 4 | 1,795 |
TypeScript | 2 | 265 | 42 | 1,469 |
PHP | 13 | 341 | 713 | 1,242 |
HTML | 1 | 121 | 0 | 501 |
JSON | 3 | 0 | 0 | 72 |
Markdown | 1 | 10 | 0 | 31 |
LESS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 3 | 5.56% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/advisr-logo.png | 9.96KB | 4.76KB | ▼ 52.25% |
public/border-star.png | 2.35KB | 0.73KB | ▼ 69.11% |
public/google-logo.png | 6.89KB | 3.42KB | ▼ 50.40% |
public/checked-icon.png | 0.38KB | 0.21KB | ▼ 43.38% |
admin/partials/logo.png | 9.96KB | 4.76KB | ▼ 52.25% |