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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.01ms] Passed 4 tests
This is a short check of server-side resources used by The Bootstrap Theme Companion
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 35.40 ▼6.76 |
Dashboard /wp-admin | 3.40 ▲0.10 | 54.93 ▲5.61 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 48.86 ▲4.24 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 84.68 ▼2.63 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 33.66 ▲1.10 |
View Source of Fund /wp-admin/edit.php?post_type=project&page=view-sof | 3.07 | 24.59 |
Bootstrap Toolkit /wp-admin/admin.php?page=bootstrap-toolkit | 3.30 | 32.06 |
Testimonials /wp-admin/edit.php?post_type=tbtc_testimonials | 3.38 | 41.68 |
Price Table /wp-admin/edit.php?post_type=tbtc_price | 3.38 | 40.38 |
Client Logo /wp-admin/admin.php?page=cleint-logo | 3.30 | 35.87 |
Teams /wp-admin/edit.php?post_type=tbtc_teams | 3.38 | 36.80 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for The Bootstrap Theme Companion
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,077 ▲320 | 15.09 ▲0.79 | 4.85 ▲2.71 | 39.98 ▼6.06 |
Dashboard /wp-admin | 2,394 ▲209 | 6.50 ▲1.61 | 133.32 ▲16.96 | 44.62 ▼1.05 |
Posts /wp-admin/edit.php | 2,305 ▲213 | 3.37 ▲1.37 | 48.24 ▲10.43 | 32.47 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.00 ▲5.57 | 615.87 ▼75.73 | 36.74 ▼21.13 |
Media Library /wp-admin/upload.php | 1,441 ▲56 | 4.18 ▼0.19 | 79.65 ▼19.82 | 41.18 ▼3.60 |
View Source of Fund /wp-admin/edit.php?post_type=project&page=view-sof | 28 | 0.44 | 0.09 | 3.49 |
Bootstrap Toolkit /wp-admin/admin.php?page=bootstrap-toolkit | 986 | 3.09 | 41.61 | 24.87 |
Testimonials /wp-admin/edit.php?post_type=tbtc_testimonials | 1,304 | 3.32 | 48.44 | 25.22 |
Price Table /wp-admin/edit.php?post_type=tbtc_price | 1,304 | 3.48 | 43.88 | 26.61 |
Client Logo /wp-admin/admin.php?page=cleint-logo | 1,092 | 3.19 | 39.31 | 23.93 |
Teams /wp-admin/edit.php?post_type=tbtc_teams | 1,304 | 3.40 | 44.35 | 27.33 |
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
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% 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 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
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/the-bootstrap-themes-companion/public/partials/tbthemes-companion-public-display.php
- > /wp-content/plugins/the-bootstrap-themes-companion/admin/partials/tbthemes-companion-admin-display.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-bootstrap-themes-companion/includes/metabox/save-metabox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-bootstrap-themes-companion/includes/class-tbthemes-companion-posttype.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/the-bootstrap-themes-companion/public/shortcode-layouts/testimonial-layout.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/the-bootstrap-themes-companion/public/shortcode-layouts/price-layout.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/the-bootstrap-themes-companion/public/shortcode-layouts/team-layout.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/the-bootstrap-themes-companion/includes/metabox/add-metabox.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=project&page=view-sof
- > Network (severe)
wp-admin/edit.php?post_type=project&page=view-sof - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: companion, business
the-bootstrap-themes-companion/tbthemes-companion.php 85% from 13 tests
"The Bootstrap Theme Companion" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("the-bootstrap-themes-companion.php" instead of "tbthemes-companion.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin676 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 220 | 590 | 549 |
CSS | 2 | 4 | 6 | 83 |
JavaScript | 3 | 17 | 32 | 44 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 1.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 16 | |
▷ Named functions | 16 | 100.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
PNG images were not found in this plugin