Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.51ms] Passed 4 tests
Server-side resources used by Content Bootstrap
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.66 ▼7.54 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.90 ▼2.00 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.75 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.19 ▼10.87 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.46 ▼1.36 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 188 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Content Bootstrap
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.55 ▼0.83 | 1.62 ▼0.65 | 39.93 ▼6.19 |
Dashboard /wp-admin | 2,206 ▲18 | 4.82 ▼1.04 | 100.83 ▼6.66 | 43.57 ▼2.08 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.09 | 39.86 ▼1.61 | 36.27 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,533 ▲4 | 23.23 ▲4.94 | 666.24 ▲9.64 | 54.34 ▼11.73 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▲0.00 | 96.61 ▼10.90 | 45.56 ▼5.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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 trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-bootstrap/content-bootstrap.php:23
- > PHP Fatal error
Uncaught Error: Class 'Bootstrap' not found in wp-content/plugins/content-bootstrap/bootstrap/bootstrap3.php:3
- > PHP Fatal error
Uncaught Error: Class 'Bootstrap' not found in wp-content/plugins/content-bootstrap/bootstrap/bootstrap2.php:3
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: widget
content-bootstrap/content-bootstrap.php 92% from 13 tests
The main PHP script in "Content Bootstrap" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin30,702 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 20 | 81 | 17,893 |
LESS | 117 | 2,018 | 2,512 | 10,234 |
HTML | 7 | 246 | 114 | 1,746 |
JSON | 1 | 0 | 0 | 304 |
PHP | 4 | 38 | 13 | 296 |
SVG | 1 | 0 | 0 | 229 |
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.30 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 19 | 95.00% |
▷ Protected methods | 1 | 5.00% |
▷ 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.04MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
bootstrap/bootstrap2/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
bootstrap/bootstrap2/img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |