Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼6.06ms] Passed 4 tests
Server-side resources used by Generate Dynamic Images - Bannerbear
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 47.77 ▲5.13 |
Dashboard /wp-admin | 3.71 ▲0.36 | 52.02 ▼7.52 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 50.07 ▼0.32 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 88.02 ▼21.51 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 44.50 ▲8.17 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_bannerbear |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Generate Dynamic Images - Bannerbear
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲71 | 14.26 ▼0.04 | 1.89 ▲0.11 | 42.45 ▼3.75 |
Dashboard /wp-admin | 2,245 ▲65 | 5.59 ▼0.06 | 89.79 ▼4.80 | 41.89 ▲1.57 |
Posts /wp-admin/edit.php | 2,153 ▲50 | 2.01 ▼0.02 | 36.37 ▼8.69 | 32.22 ▼5.93 |
Add New Post /wp-admin/post-new.php | 6,208 ▲4,682 | 18.77 ▼4.18 | 942.20 ▲260.78 | 59.60 ▼6.38 |
Media Library /wp-admin/upload.php | 1,456 ▲59 | 4.22 ▲0.08 | 108.36 ▼1.52 | 46.35 ▲2.47 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_bannerbear
- widget_recent-comments
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: image, og, dynamic image, open graph, widget
bannerbear/bannerbear.php 85% from 13 tests
The entry point to "Generate Dynamic Images - Bannerbear" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "5.5")
- Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.0")
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
Good job! No executable or dangerous file extensions detected1,584 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 436 | 816 | 1,582 |
JavaScript | 2 | 0 | 0 | 2 |
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.45 |
Average class complexity | 23.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 85 | |
▷ Static methods | 5 | 5.88% |
▷ Public methods | 79 | 92.94% |
▷ Protected methods | 5 | 5.88% |
▷ Private methods | 1 | 1.18% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder.png | 2.59KB | 2.34KB | ▼ 9.70% |