Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.76MB] [CPU: ▲16.33ms] Passed 4 tests
A check of server-side resources used by Branded Social Images - Open Graph Images with logo and extra text layer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.25 ▲0.78 | 52.51 ▲17.20 |
Dashboard /wp-admin | 4.08 ▲0.77 | 58.16 ▲9.79 |
Posts /wp-admin/edit.php | 4.14 ▲0.77 | 63.46 ▲18.20 |
Add New Post /wp-admin/post-new.php | 6.81 ▲0.91 | 132.25 ▲40.12 |
Media Library /wp-admin/upload.php | 3.94 ▲0.71 | 52.36 ▲20.14 |
Server storage [IO: ▲2.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 9 new options
New WordPress options |
---|
_bsi_image__og_logo_errors |
_bsi_rewrite_rules_based_on |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
_bsi_default__admin_errors |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Branded Social Images - Open Graph Images with logo and extra text layer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲149 | 14.24 ▼0.29 | 1.98 ▲0.29 | 44.64 ▲4.06 |
Dashboard /wp-admin | 2,277 ▲97 | 5.66 ▲0.06 | 84.32 ▼3.86 | 76.05 ▲27.68 |
Posts /wp-admin/edit.php | 2,196 ▲96 | 2.21 ▲0.24 | 37.68 ▲2.43 | 33.59 ▼1.50 |
Add New Post /wp-admin/post-new.php | 6,660 ▲5,125 | 27.83 ▲9.44 | 1,011.94 ▲366.88 | 84.07 ▲14.23 |
Media Library /wp-admin/upload.php | 1,494 ▲94 | 4.41 ▲0.32 | 93.91 ▼5.34 | 82.87 ▲39.35 |
Uninstaller [IO: ▲0.46MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-comments
- _bsi_rewrite_rules_based_on
- db_upgraded
- theysaidso_admin_options
- _bsi_image__og_logo_errors
- _bsi_default__admin_errors
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following items
- 20× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/branded-social-images/lib/html_inputs/class.select.php
- > /wp-content/plugins/branded-social-images/lib/class.og-image-plugin.php
- > /wp-content/plugins/branded-social-images/lib/html_inputs/class.input.php
- > /wp-content/plugins/branded-social-images/lib/html_inputs/class.option.php
- > /wp-content/plugins/branded-social-images/lib/class.og-image-imagick.php
- > /wp-content/plugins/branded-social-images/lib/html_inputs/class.radio.php
- > /wp-content/plugins/branded-social-images/lib/html_inputs/class.radios.php
- > /wp-content/plugins/branded-social-images/lib/html_inputs/class.color.php
- > /wp-content/plugins/branded-social-images/lib/class.og-image-gd.php
- > /wp-content/plugins/branded-social-images/lib/html_inputs/class.textarea.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/branded-social-images/vendor/stil/gd-text/tests/TestCase.php:4
- > PHP Fatal error
Uncaught Error: Class 'GDText\\Tests\\TestCase' not found in wp-content/plugins/branded-social-images/vendor/stil/gd-text/tests/TextWrappingTest.php:8
- > PHP Fatal error
Uncaught Error: Class 'GDText\\Tests\\TestCase' not found in wp-content/plugins/branded-social-images/vendor/stil/gd-text/tests/TextAlignmentTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'GDText\\Tests\\TestCase' not found in wp-content/plugins/branded-social-images/vendor/stil/gd-text/tests/ColorTest.php:6
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
branded-social-images/wp-plugin.php 85% from 13 tests
"Branded Social Images - Open Graph Images with logo and extra text layer" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("branded-social-images.php" instead of "wp-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin8,556 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 938 | 1,149 | 4,713 |
CSS | 2 | 0 | 43 | 1,968 |
JavaScript | 2 | 194 | 82 | 1,278 |
PO File | 1 | 116 | 127 | 294 |
Markdown | 1 | 41 | 0 | 120 |
JSON | 3 | 0 | 0 | 75 |
SVG | 5 | 0 | 0 | 60 |
Bourne Shell | 1 | 17 | 3 | 41 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 25.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 309.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 3 | 9.68% |
▷ Concrete classes | 28 | 90.32% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 104 | 42.62% |
▷ Public methods | 211 | 86.48% |
▷ Protected methods | 11 | 4.51% |
▷ Private methods | 22 | 9.02% |
Functions | 30 | |
▷ Named functions | 2 | 6.67% |
▷ Anonymous functions | 28 | 93.33% |
Constants | 40 | |
▷ Global constants | 2 | 5.00% |
▷ Class constants | 38 | 95.00% |
▷ Public constants | 38 | 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
28 PNG files occupy 0.21MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/stil/gd-text/tests/images/test_align_top_center.png | 9.20KB | 4.20KB | ▼ 54.29% |
admin/images/ui-icons_2e83ff_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |
admin/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.31KB | 0.18KB | ▼ 42.95% |
vendor/stil/gd-text/examples/fonts.png | 53.05KB | 19.26KB | ▼ 63.70% |
vendor/stil/gd-text/tests/images/test_align_top_left.png | 9.84KB | 4.50KB | ▼ 54.31% |