Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.13MB] [CPU: ▼23.31ms] Passed 4 tests
Analyzing server-side resources used by Pilvi Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 23.94 ▼19.70 |
Dashboard /wp-admin | 3.21 ▼0.10 | 29.30 ▼22.89 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 37.82 ▼15.51 |
Add New Post /wp-admin/post-new.php | 5.53 ▼0.36 | 68.09 ▼35.14 |
Media Library /wp-admin/upload.php | 3.23 ▼0.00 | 29.42 ▼8.33 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 14 new options
New WordPress options |
---|
pilvi_emb_version |
widget_recent-comments |
pilvi_emb_language |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
pilvi_embed_plugin_version |
pilvi_emb_api_host |
pilvi_emb_prices |
pilvi_emb_compare |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Pilvi Embed
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,962 ▲216 | 13.72 ▼0.66 | 5.61 ▲3.76 | 40.18 ▼4.94 |
Dashboard /wp-admin | 2,216 ▲25 | 5.83 ▼0.07 | 105.08 ▲4.37 | 80.76 ▲36.81 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 1.98 ▼0.08 | 38.59 ▼9.76 | 35.32 ▼5.71 |
Add New Post /wp-admin/post-new.php | 1,553 ▲24 | 23.29 ▲4.85 | 769.66 ▲118.36 | 59.97 ▲6.11 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.22 ▼0.03 | 99.32 ▼3.25 | 83.69 ▲39.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: pilvi, embed
pilvi-embed/pilvi-embed.php Passed 13 tests
The main file in "Pilvi Embed" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
16 characters long description:
Shortcode plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,141 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 273 | 580 | 727 |
CSS | 2 | 26 | 4 | 231 |
JavaScript | 3 | 47 | 17 | 183 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
3 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/pilvi-embed.png | 56.30KB | 26.86KB | ▼ 52.29% |
images/pilvi-logo-big.png | 2.73KB | 2.72KB | 0.21% |
images/icon.png | 0.56KB | 0.56KB | 0.00% |