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.09MB] [CPU: ▼2.60ms] Passed 4 tests
Analyzing server-side resources used by BootstrapCDN - Wordpress CDN Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.05 ▼3.77 |
Dashboard /wp-admin | 3.40 ▲0.06 | 48.15 ▼17.61 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.60 ▲5.00 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 93.58 ▲7.02 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.68 ▲5.98 |
Bootstrap CDN /wp-admin/options-general.php?page=BootstrapCDN | 3.32 | 32.37 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
BootstrapCDN_cdn_data |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
BootstrapCDN - Wordpress CDN Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼1.40 | 1.82 ▼0.32 | 45.27 ▲2.32 |
Dashboard /wp-admin | 2,207 ▲19 | 4.82 ▼0.04 | 107.56 ▼2.93 | 40.90 ▲0.02 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.05 ▲0.03 | 39.67 ▲5.73 | 33.89 ▼3.59 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.23 ▲0.11 | 676.49 ▼9.62 | 52.12 ▼2.53 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.22 ▲0.03 | 92.92 ▼2.54 | 44.66 ▲3.33 |
Bootstrap CDN /wp-admin/options-general.php?page=BootstrapCDN | 957 | 2.07 | 28.10 | 29.34 |
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 detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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/options-general.php?page=BootstrapCDN
- > Deprecated in wp-content/plugins/bootstrapcdn/admin/options.php+48
The each() function is deprecated. This message will be suppressed on further calls
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (Main settings screen)
bootstrapcdn/bootstrapcdn.php 92% from 13 tests
The entry point to "BootstrapCDN - Wordpress CDN Plugin" version 0.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin823 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 142 | 66 | 612 |
PO File | 1 | 29 | 29 | 80 |
JSON | 1 | 0 | 0 | 60 |
JavaScript | 1 | 6 | 2 | 57 |
CSS | 1 | 3 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 56.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 6.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 2 | 9.09% |
▷ Public methods | 16 | 72.73% |
▷ Protected methods | 6 | 27.27% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 13.71KB | 8.62KB | ▼ 37.13% |