Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/st-breadcrumbs/widget.php+50
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.15ms] Passed 4 tests
A check of server-side resources used by ST Breadcrumb
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.79 ▼33.94 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.40 ▼42.92 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.29 ▼43.08 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.17 ▼100.64 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.40 ▼28.35 |
ST Breadcrumb WP /wp-admin/options-general.php?page=st_breadcrumb_wp | 2.05 | 5.22 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
st_breadcrumb_admin_notice |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_st_breadcrumb_widget |
Browser metrics Passed 4 tests
Checking browser requirements for ST Breadcrumb
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 14.48 ▼0.13 | 1.60 ▼0.38 | 39.15 ▼2.65 |
Dashboard /wp-admin | 2,212 ▲27 | 4.85 ▼0.06 | 109.65 ▲9.66 | 39.24 ▼3.54 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.00 ▼0.04 | 40.54 ▼0.58 | 35.48 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 18.29 ▼5.12 | 618.02 ▼30.00 | 66.04 ▲16.17 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.22 ▲0.09 | 96.61 ▼19.52 | 43.55 ▼4.29 |
ST Breadcrumb WP /wp-admin/options-general.php?page=st_breadcrumb_wp | 1,013 | 2.08 | 23.17 | 48.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/st-breadcrumbs/widget.php+50
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_st_breadcrumb_widget
- st_breadcrumb_admin_notice
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=st_breadcrumb_wp
- > Deprecated in wp-content/plugins/st-breadcrumbs/widget.php+50
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=st_breadcrumb_wp
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in st_breadcrumb_widget is deprecated since version 4.3.0! Use __construct() instead.
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
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/st-breadcrumbs/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/st-breadcrumbs/st-breadcrumb.php:12
- > PHP Fatal 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: breadcrumb plugin, breadcrumb
st-breadcrumbs/st-breadcrumb.php 92% from 13 tests
This is the main PHP file of "ST Breadcrumb" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("st-breadcrumbs.php" instead of "st-breadcrumb.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin663 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 9 | 14 | 363 |
CSS | 2 | 0 | 2 | 245 |
PO File | 1 | 19 | 19 | 55 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bc-icon.png | 1.36KB | 0.69KB | ▼ 49.50% |
images/st-searchwp-bg.png | 0.08KB | 0.09KB | 0.00% |