Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼2.57ms] Passed 4 tests
A check of server-side resources used by Onix Helper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 51.03 ▲4.74 |
Dashboard /wp-admin | 3.65 ▲0.30 | 57.19 ▼9.67 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 55.65 ▲5.99 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 88.81 ▼11.34 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 43.19 ▲7.70 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Onix Helper
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.28 ▼0.07 | 1.77 ▼0.06 | 45.63 ▲1.74 |
Dashboard /wp-admin | 2,222 ▲45 | 5.71 ▲0.13 | 89.01 ▼2.15 | 81.66 ▲38.38 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.03 ▲0.04 | 34.18 ▼2.96 | 38.36 ▲1.04 |
Add New Post /wp-admin/post-new.php | 1,551 ▲25 | 23.07 ▼0.46 | 711.77 ▲22.99 | 37.78 ▼19.81 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.24 ▲0.06 | 104.32 ▲1.19 | 77.26 ▲25.36 |
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 does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/template-parts/holidays-decor/christmas-lights.php
- > /wp-content/plugins/onix-helper-cpt-cmb-taxonomies/onix-helper.php
- > /wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/template-parts/sections/footer-main.php
- > /wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/template-parts/functional-parts/plugin-title.php
- 20× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/Interfaces/Callbacks/OhelperTaxCallbacksOhelper.php on line 155
- > PHP Fatal error
Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/cpt_manager.php:6
- > PHP Fatal error
Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/OhelperFieldsControllerOhelper.php:14
- > PHP Fatal error
Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/OhelperTaxControllerOhelper.php:12
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/FieldsClasses/OhelperConfigurableMetabox.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/OhelperSettingsLinks.php:9
- > PHP Fatal error
Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/templates/template-parts/sections/header-main.php:5
- > PHP Fatal error
Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/Interfaces/OhelperAdminPagesCreator.php:14
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/Interfaces/Callbacks/OhelperBaseCallbacks.php on line 48
- > PHP Fatal error
Uncaught Error: Class 'Onixhelper\\System\\OhelperBaseController' not found in wp-content/plugins/onix-helper-cpt-cmb-taxonomies/inc/System/OhelperCPTControllerOhelper.php:13
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 79% 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
3 plugin tags: taxonomy, custom post type, cpt
onix-helper-cpt-cmb-taxonomies/onix-helper.php 54% from 13 tests
The primary PHP file in "Onix Helper" version 1.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("6.0" instead of "6.1")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("onix-helper-cpt-cmb-taxonomies.php" instead of "onix-helper.php")
- Domain Path: The domain path must begin with a forward slash character ("//")
- Domain Path: You should use only dashes and lowercase characters for the domain path ("/")
- Description: The description should be shorter than 140 characters (currently 178 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin4,263 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 777 | 910 | 3,498 |
Sass | 5 | 74 | 6 | 415 |
JavaScript | 7 | 90 | 79 | 291 |
CSS | 2 | 1 | 1 | 36 |
JSON | 2 | 0 | 0 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 1 | 4.35% |
Methods | 165 | |
▷ Static methods | 25 | 15.15% |
▷ Public methods | 135 | 81.82% |
▷ Protected methods | 11 | 6.67% |
▷ Private methods | 19 | 11.52% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/mono-logo.png | 0.58KB | 0.74KB | 0.00% |
assets/img/onix-bot.png | 13.31KB | 6.06KB | ▼ 54.46% |
assets/img/mascot.png | 76.09KB | 19.84KB | ▼ 73.93% |
assets/img/no-image.png | 3.98KB | 4.27KB | 0.00% |