Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/bootstrap/bootstrap.php+150
Non-static method Bootstrap_Toolkit::get_instance() should not be called statically
Server metrics [RAM: ▼1.96MB] [CPU: ▼57.00ms] Passed 4 tests
Analyzing server-side resources used by Bootstrap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.35 ▼38.30 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.47 ▼47.43 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.64 ▼43.58 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.22 ▼98.70 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.03 ▼36.72 |
Bootstrap /wp-admin/themes.php?page=bootstrap-options | 2.05 | 5.19 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Bootstrap
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.22 ▼1.15 | 1.72 ▼0.03 | 44.26 ▲2.44 |
Dashboard /wp-admin | 2,225 ▲31 | 5.88 ▼0.12 | 105.63 ▼4.66 | 44.51 ▼0.10 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.04 | 40.17 ▲0.78 | 36.78 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,529 ▼150 | 17.55 ▼4.66 | 667.09 ▲64.65 | 63.93 ▲4.05 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.13 ▼0.05 | 106.17 ▲1.79 | 48.51 ▲1.99 |
Bootstrap /wp-admin/themes.php?page=bootstrap-options | 1,721 | 2.03 | 22.21 | 40.81 |
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
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/bootstrap/bootstrap.php+150
Non-static method Bootstrap_Toolkit::get_instance() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=bootstrap-options
- > Deprecated in wp-content/plugins/bootstrap/bootstrap.php+150
Non-static method Bootstrap_Toolkit::get_instance() should not be called statically
- > GET request to /wp-admin/themes.php?page=bootstrap-options
- > Notice in wp-content/plugins/bootstrap/bootstrap.php+115
Undefined index: vars
- > GET request to /wp-admin/themes.php?page=bootstrap-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=bootstrap-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 37 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=bootstrap-options
- > Notice in wp-content/plugins/bootstrap/views/admin.php+46
Undefined index: less
- 50 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=bootstrap-options
- > Notice in wp-content/plugins/bootstrap/views/admin.php+63
Trying to access array offset on value of type null
- 13 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=bootstrap-options
- > Notice in wp-content/plugins/bootstrap/views/admin.php+63
Undefined index: js
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/bootstrap/bootstrap.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/bootstrap/views/admin.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
4 plugin tags: theme, stylesheet, css, twitter-bootstrap
bootstrap/bootstrap.php Passed 13 tests
The main file in "Bootstrap" v. 0.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
37 characters long description:
Easy embed Twitter Bootstrap toolkit.
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
No dangerous file extensions were detected8,559 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
LESS | 39 | 718 | 859 | 4,217 |
PHP | 3 | 626 | 372 | 2,899 |
JavaScript | 14 | 549 | 333 | 1,402 |
CSS | 1 | 3 | 0 | 41 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 108.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 328.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 173 | |
▷ Static methods | 4 | 2.31% |
▷ Public methods | 42 | 24.28% |
▷ Protected methods | 131 | 75.72% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin