Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-about-author.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; boron_author has a deprecated constructor
Server metrics [RAM: ▼2.30MB] [CPU: ▼337.67ms] Passed 4 tests
A check of server-side resources used by Functionality for Boron theme
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.01 ▼1.12 | 4.58 ▼25.84 |
Dashboard /wp-admin | 2.03 ▼1.38 | 4.48 ▼28.51 |
Posts /wp-admin/edit.php | 2.03 ▼1.61 | 5.31 ▼31.35 |
Add New Post /wp-admin/post-new.php | 2.03 ▼4.94 | 4.29 ▼1,264.99 |
Media Library /wp-admin/upload.php | 2.03 ▼1.27 | 3.94 ▼21.68 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 2.06 | 4.61 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_fastflickrwidget |
widget_recent-posts-plus |
widget_boron-directory-followers |
widget_recent-posts |
widget_recent-comments |
widget_boron_author |
Browser metrics Passed 4 tests
A check of browser resources used by Functionality for Boron theme
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,945 ▲223 | 16.26 ▲0.23 | 9.51 ▲3.72 | 2.31 ▲0.00 |
Dashboard /wp-admin | 2,900 ▲46 | 6.14 ▲0.04 | 115.96 ▼19.67 | 155.72 ▼1.41 |
Posts /wp-admin/edit.php | 2,707 ▲19 | 3.24 ▲0.02 | 63.39 ▼3.21 | 138.42 ▼7.28 |
Add New Post /wp-admin/post-new.php | 1,668 ▼43 | 16.20 ▼5.40 | 406.90 ▼62.80 | 155.88 ▼5.75 |
Media Library /wp-admin/upload.php | 1,715 ▲17 | 5.54 ▲0.03 | 157.56 ▲4.32 | 181.79 ▼14.35 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 8,830 | 20.21 | 519.40 | 161.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-about-author.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; boron_author has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_boron_author
- widget_recent-posts
- widget_boron-directory-followers
- widget_fastflickrwidget
- widget_recent-posts-plus
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Deprecated in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-about-author.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; boron_author has a deprecated constructor
- 6 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Deprecated in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+291
Function create_function() is deprecated
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+115
Undefined index: title
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+116
Undefined index: username
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+117
Undefined index: view
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+118
Undefined index: before_item
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+119
Undefined index: after_item
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+120
Undefined index: before_widget
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+121
Undefined index: after_widget
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+122
Undefined index: items
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+123
Undefined index: more_title
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+124
Undefined index: tags
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+125
Undefined index: target
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+126
Undefined index: show_titles
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+127
Undefined index: thickbox
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+128
Undefined index: random
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+129
Undefined index: random_tag
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php+130
Undefined index: javascript
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
SRP 0% 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
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/functionality-for-boron-theme/admin/partials/boron-functionality-admin-display.php
- > /wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-recent-posts-plus.php
- > /wp-content/plugins/functionality-for-boron-theme/public/partials/boron-functionality-public-display.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-fast-flickr.php:26
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-about-author.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionality-for-boron-theme/includes/widgets/widget-followers.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: ecommerce, boron
functionality-for-boron-theme/functionality-for-boron-theme.php Passed 13 tests
"Functionality for Boron theme" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
This plugin contains Boron theme core functionality
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
There were no executable files found in this plugin2,069 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 485 | 985 | 1,866 |
PO File | 1 | 76 | 163 | 171 |
CSS | 2 | 10 | 9 | 24 |
JavaScript | 2 | 6 | 54 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 13 | 10.57% |
▷ Public methods | 105 | 85.37% |
▷ Protected methods | 2 | 1.63% |
▷ Private methods | 16 | 13.01% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
Constants | 5 | |
▷ Global constants | 5 | 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
No PNG files were detected