Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.98ms] Passed 4 tests
Server-side resources used by BP Template Overloader
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.12 ▼2.98 |
Dashboard /wp-admin | 3.35 ▲0.04 | 58.46 ▲10.02 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.63 ▼6.42 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 93.17 ▼5.49 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.19 ▲2.97 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
These are issues you should consider
- You have illegally modified 2 files (0.00KB) outside of "wp-content/plugins/bp-template-overloader/" and "wp-content/uploads/"
- (new file) wp-content/bp-template-overloads/bp-legacy/.empty
- (new file) wp-content/bp-template-overloads/bp-nouveau/.empty
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
BP Template Overloader: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.40 ▲0.19 | 1.64 ▼0.47 | 40.75 ▼8.24 |
Dashboard /wp-admin | 2,209 ▲21 | 5.83 ▼0.06 | 120.53 ▲3.45 | 48.15 ▲2.69 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 2.01 ▲0.01 | 52.00 ▲10.88 | 36.60 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 22.69 ▼0.53 | 634.55 ▼27.82 | 75.13 ▼2.67 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.22 ▼0.03 | 103.94 ▼10.86 | 47.26 ▼2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/bp-template-overloader/uninstall.php+7
unlink(wp-content/bp-template-overloads/): Is a directory
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI found ("paypal.me/GeorgeChaplin")
bp-template-overloader/loader.php 92% from 13 tests
The main PHP file in "BP Template Overloader" ver. 1.0.10 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bp-template-overloader.php" instead of "loader.php")
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 plugin8,998 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,309 | 662 | 5,508 |
PHP | 7 | 429 | 200 | 2,626 |
CSS | 3 | 135 | 22 | 864 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 5.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 5 | 62.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 37.50% |
Functions | 29 | |
▷ Named functions | 29 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/red-d.png | 4.12KB | 1.57KB | ▼ 61.99% |
images/green-e.png | 4.12KB | 1.68KB | ▼ 59.24% |
images/blue-e.png | 4.12KB | 1.63KB | ▼ 60.42% |
images/red-v.png | 4.12KB | 1.69KB | ▼ 58.90% |
images/green-r.png | 4.12KB | 1.72KB | ▼ 58.15% |