Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.80ms] Passed 4 tests
This is a short check of server-side resources used by Victorious Toolkit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.05 | 38.07 ▼7.72 |
Dashboard /wp-admin | 3.38 ▲0.01 | 48.20 ▼16.83 |
Posts /wp-admin/edit.php | 3.43 ▲0.05 | 48.18 ▲2.22 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.05 | 94.71 ▲0.49 |
Media Library /wp-admin/upload.php | 3.31 ▲0.04 | 36.81 ▲0.87 |
Server storage [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Victorious Toolkit
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.48 ▲0.10 | 1.98 ▼1.31 | 39.07 ▲0.59 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.72 | 95.58 ▼9.92 | 38.62 ▼3.88 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▲0.00 | 39.15 ▲2.86 | 36.34 ▲4.04 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 18.19 ▼4.89 | 628.08 ▼33.38 | 56.56 ▲4.33 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.20 ▼0.02 | 94.97 ▼1.07 | 42.36 ▲0.95 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/victorious-theme-toolkit/includes/ajax.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/victorious-theme-toolkit/includes/widgets/victor-text.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/victorious-theme-toolkit/includes/fields/widget/link-icon.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/victorious-theme-toolkit/includes/post-types/testimonials.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/victorious-theme-toolkit/includes/post-types/portfolio.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/victorious-theme-toolkit/includes/shortcodes/accordions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/victorious-theme-toolkit/includes/shortcodes/tabs.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/victorious-theme-toolkit/includes/widgets/victor-contact-info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/victorious-theme-toolkit/victorious-toolkit.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/victorious-theme-toolkit/includes/widgets/victor-entry-list.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: custom-field, short-code, tool, languages, toolkit
victorious-theme-toolkit/victorious-toolkit.php 92% from 13 tests
The main file in "Victorious Toolkit" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("victorious-theme-toolkit.php" instead of "victorious-toolkit.php")
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
There were no executable files found in this plugin9,823 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 322 | 133 | 3,669 |
PHP | 40 | 328 | 36 | 3,654 |
JavaScript | 4 | 180 | 34 | 1,865 |
PO File | 1 | 308 | 815 | 635 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 19 | 23.46% |
▷ Public methods | 81 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
16 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 |
assets/css/jquery-ui/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
assets/css/jquery-ui/images/ui-bg_flat_65_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
assets/css/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |
assets/css/jquery-ui/images/ui-bg_flat_70_dadada_40x100.png | 0.22KB | 0.08KB | ▼ 62.17% |
assets/css/jquery-ui/images/ui-bg_flat_0_ccc_40x100.png | 0.21KB | 0.08KB | ▼ 60.45% |