Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼8.52ms] Passed 4 tests
Analyzing server-side resources used by Advisr Toolbox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.79 ▼2.24 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.44 ▼2.89 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 51.42 ▲4.70 |
Add New Post /wp-admin/post-new.php | 3.45 ▼2.44 | 61.88 ▼29.62 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.15 ▲0.67 |
Team from Wordpress /wp-admin/edit.php?post_type=advisr-team-member | 3.33 | 39.48 |
Advisr Toolbox /wp-admin/options-general.php?page=advisr-toolbox | 3.33 | 31.59 |
Add New Team Member /wp-admin/post-new.php?post_type=advisr-team-member | 3.40 | 47.15 |
Team from Advisr (Brokers) /wp-admin/edit.php?post_type=advisr-team-member&page=advisr-brokers | 3.31 | 32.82 |
Server storage [IO: ▲5.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Advisr Toolbox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,972 ▲215 | 13.80 ▼0.51 | 12.49 ▲10.56 | 38.91 ▼6.43 |
Dashboard /wp-admin | 2,247 ▲56 | 5.86 ▲0.91 | 109.26 ▼5.90 | 43.28 ▼4.61 |
Posts /wp-admin/edit.php | 2,124 ▲38 | 2.01 ▲0.01 | 40.02 ▲4.80 | 34.54 ▼1.33 |
Add New Post /wp-admin/post-new.php | 3,132 ▲1,608 | 7.75 ▼15.56 | 187.25 ▼483.05 | 72.41 ▲12.92 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.29 ▲0.07 | 94.08 ▼4.39 | 42.42 ▼2.69 |
Team from Wordpress /wp-admin/edit.php?post_type=advisr-team-member | 1,088 | 2.00 | 34.79 | 30.86 |
Advisr Toolbox /wp-admin/options-general.php?page=advisr-toolbox | 1,096 | 1.88 | 25.81 | 27.15 |
Add New Team Member /wp-admin/post-new.php?post_type=advisr-team-member | 2,410 | 7.77 | 165.34 | 61.15 |
Team from Advisr (Brokers) /wp-admin/edit.php?post_type=advisr-team-member&page=advisr-brokers | 836 | 2.05 | 24.78 | 28.77 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 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+177
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+51
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+53
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+54
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+178
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
Almost there! Just 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× PHP files trigger server-side errors or warnings when accessed directly:
- > 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
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
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=advisr-toolbox 255 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/options-general.php?page=advisr-toolbox
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=advisr-toolbox - Access to fetch at 'https://advisr.com.au/api/v2/brokerages' from origin '' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Network (severe)
https://advisr.com.au/api/v2/brokerages - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/options-general.php?page=advisr-toolbox
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=advisr-toolbox 377:46 Uncaught TypeError: Cannot read properties of undefined (reading 'data')
- > 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 445:29 Uncaught SyntaxError: Unexpected token ';'
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Requires php: Version not formatted correctly
advisr-toolbox/advisr-toolbox.php Passed 13 tests
"Advisr Toolbox" version 2.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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
Everything looks great! No dangerous files found in this plugin39,234 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,304 | 1,954 | 9,210 |
SVG | 3 | 0 | 0 | 2,677 |
Sass | 1 | 56 | 4 | 1,795 |
TypeScript | 2 | 265 | 42 | 1,469 |
PHP | 13 | 342 | 717 | 1,249 |
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
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
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/google-logo.png | 6.89KB | 3.42KB | ▼ 50.40% |
public/border-star.png | 2.35KB | 0.73KB | ▼ 69.11% |
admin/partials/logo.png | 9.96KB | 4.76KB | ▼ 52.25% |
public/checked-icon.png | 0.38KB | 0.21KB | ▼ 43.38% |
public/dark-star.png | 2.05KB | 0.48KB | ▼ 76.57% |