Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.46ms] Passed 4 tests
A check of server-side resources used by Brader Kits
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 35.51 ▼4.81 |
Dashboard /wp-admin | 3.41 ▲0.11 | 42.71 ▼7.00 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.65 ▲3.28 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 80.61 ▼17.24 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 33.81 ▼0.78 |
Brader Kits /wp-admin/admin.php?page=brader-kits | 3.32 | 35.34 |
Server storage [IO: ▲6.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Brader Kits
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲137 | 14.09 ▼0.32 | 4.94 ▲3.09 | 41.66 ▼7.01 |
Dashboard /wp-admin | 2,203 ▲15 | 5.76 ▲0.73 | 104.28 ▼13.33 | 40.39 ▼4.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 38.93 ▲2.01 | 35.50 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.34 ▲5.91 | 668.61 ▲36.60 | 53.83 ▲3.86 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.21 ▲0.09 | 96.70 ▼1.20 | 46.08 ▲3.58 |
Brader Kits /wp-admin/admin.php?page=brader-kits | 860 | 6.27 | 131.90 | 67.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/brader-kits/includes/class-brader-kits.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=brader-kits
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=brader-kits#/ - Access to XMLHttpRequest at 'https://api.brader.id/user/me/v1?origin=http:%2F%2Fwp.com' 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.
- > GET request to /wp-admin/admin.php?page=brader-kits
- > Network (severe)
https://api.brader.id/user/me/v1?origin=http:%2F%2Fwp.com - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/admin.php?page=brader-kits
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=brader-kits#/ - Access to XMLHttpRequest at 'https://api.brader.id/team/member/v1?origin=http:%2F%2Fwp.com' 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.
- > GET request to /wp-admin/admin.php?page=brader-kits
- > Network (severe)
https://api.brader.id/team/member/v1?origin=http:%2F%2Fwp.com - Failed to load resource: net::ERR_FAILED
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Contributors: The plugin contributors field is not present
- Requires php: Invalid version format
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in brader-kits/assets to your readme.txt
brader-kits/brader-kits.php Passed 13 tests
This is the main PHP file of "Brader Kits" version 21.8.15, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Set of tool-kits that can extend your WooCommerce Store
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected732 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 110 | 59 | 549 |
JavaScript | 8 | 4 | 230 | 160 |
HTML | 2 | 0 | 1 | 17 |
CSS | 8 | 0 | 12 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 35 | 81.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 18.60% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin