Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.69ms] Passed 4 tests
Server-side resources used by Burger Companion
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.05 ▼2.43 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.12 ▼17.26 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.49 ▼0.52 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.33 ▼4.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.08 ▼2.43 |
Server storage [IO: ▲11.96MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 438 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
item_details_page |
widget_recent-posts |
Browser metrics Passed 4 tests
Burger Companion: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 14.68 ▲0.03 | 2.09 ▲0.09 | 43.69 ▼2.08 |
Dashboard /wp-admin | 2,195 ▲14 | 5.64 ▼0.09 | 93.23 ▼8.40 | 42.63 ▼1.88 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.95 ▼0.01 | 34.45 ▼1.32 | 34.64 ▲2.00 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.13 ▼0.06 | 666.21 ▼32.51 | 51.18 ▲5.09 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.16 ▼0.05 | 100.79 ▼9.65 | 44.49 ▼5.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- item_details_page
- widget_recent-comments
- theysaidso_admin_options
- 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 no errors were found, this is by no means 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
The following issues need your attention
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/burger-companion/inc/custom-controls/customizer-repeater/inc/icons.php
- > /wp-content/plugins/burger-companion/inc/setto-lifestyle/sections/section-browse.php
- > /wp-content/plugins/burger-companion/inc/setto/sections/section-browse-cat.php
- 285× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/burger-companion/burger-companion.php:11
- > PHP Warning
require(BURGER_COMPANION_PLUGIN_DIRinc/appetizer/extras.php): failed to open stream: No such file or directory in wp-content/plugins/burger-companion/inc/rasam/rasam.php on line 6
- > PHP Warning
require(BURGER_COMPANION_PLUGIN_DIRinc/spintech/extras.php): failed to open stream: No such file or directory in wp-content/plugins/burger-companion/inc/burgertech/burgertech.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/burger-companion/inc/appetizer/default-pages/home-page.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/burger-companion/inc/seokart/sections/section-above-header.php:85
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/burger-companion/inc/decorme/sections/section-info.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/burger-companion/inc/digipress/sections/section-above-header.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/burger-companion/inc/decorme/default-widgets/default-widget.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_insert_post() in wp-content/plugins/burger-companion/inc/storebiz/default-pages/home-page.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/burger-companion/inc/spabiz/features/spabiz-header.php:241
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: spintech
burger-companion/burger-companion.php Passed 13 tests
"Burger Companion" version 6.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
The Burger Companion plugin adds sections functionality to the Spintech Theme.
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
Everything looks great! No dangerous files found in this plugin26,610 lines of code in 228 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 220 | 2,825 | 1,954 | 24,847 |
JavaScript | 4 | 251 | 59 | 1,365 |
CSS | 4 | 69 | 0 | 398 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 4.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 57 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 1 | 1.45% |
▷ Public methods | 61 | 88.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 11.59% |
Functions | 420 | |
▷ Named functions | 420 | 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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
131 PNG files occupy 5.36MB with 1.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/cozipress/images/clipArt/testimonials/shape4.png | 0.63KB | 0.70KB | 0.00% |
inc/spintech/images/clipArt/ctaClipart/shape7.png | 2.30KB | 0.98KB | ▼ 57.34% |
inc/appetizer/images/clipArt/services/shape1.png | 1.50KB | 1.76KB | 0.00% |
inc/seokart/images/slider-man-img.png | 119.75KB | 34.94KB | ▼ 70.83% |
inc/spacare/images/slider/04.png | 499.32KB | 506.62KB | 0.00% |