Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.68MB] [CPU: ▼52.19ms] Passed 4 tests
A check of server-side resources used by Privacy Embed
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.15 | 5.86 ▼38.43 |
Dashboard /wp-admin | 2.34 ▼1.01 | 9.09 ▼47.74 |
Posts /wp-admin/edit.php | 2.34 ▼1.02 | 7.54 ▼39.95 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.55 | 6.77 ▼82.62 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 7.83 ▼27.19 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Privacy Embed
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 13.46 ▼0.52 | 9.82 ▲7.37 | 44.70 ▼1.94 |
Dashboard /wp-admin | 2,209 ▲29 | 5.57 ▼0.08 | 86.47 ▼3.24 | 38.51 ▲2.14 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.12 ▲0.11 | 35.36 ▼2.27 | 32.38 ▼3.92 |
Add New Post /wp-admin/post-new.php | 1,552 ▲35 | 17.88 ▼1.10 | 646.77 ▲206.74 | 78.19 ▲9.17 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.22 ▲0.01 | 98.98 ▼4.62 | 41.71 ▼3.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
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
No browser issues were found
Optimizations
Plugin configuration 97% 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:
- License uri: Invalid URI ("License URI: https://www.gnu.org/licenses/gpl-2.0.html")
privacy-embed/privacy-embed.php Passed 13 tests
The main file in "Privacy Embed" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
87 characters long description:
Providing shortcodes to privacy-friendly embed external elements (like YouTube videos).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,505 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 182 | 320 | 1,134 |
PO File | 1 | 47 | 47 | 165 |
CSS | 1 | 23 | 3 | 144 |
Markdown | 1 | 14 | 0 | 36 |
JavaScript | 1 | 2 | 3 | 26 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 7.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 65.52% |
▷ Protected methods | 10 | 34.48% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
1 PNG file occupies 0.33MB with 0.21MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/spotify_thumbnail.png | 341.27KB | 124.78KB | ▼ 63.44% |