Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.70ms] Passed 4 tests
Analyzing server-side resources used by Dot Embed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 44.56 ▼0.88 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.32 ▼2.36 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.21 ▼3.43 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.40 ▼4.12 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.37 ▼0.68 |
Dot Embed /wp-admin/options-general.php?page=dot-embed-settings | 3.21 | 33.37 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Dot Embed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.79 ▲0.18 | 2.22 ▲0.50 | 38.49 ▼2.85 |
Dashboard /wp-admin | 2,209 ▲32 | 5.69 ▲0.18 | 90.86 ▲1.63 | 43.12 ▲1.66 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.05 ▲0.05 | 40.94 ▲4.47 | 38.94 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,544 ▲3 | 18.18 ▼5.07 | 648.75 ▲37.59 | 85.04 ▲32.63 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.20 ▲0.00 | 96.93 ▼7.97 | 42.86 ▲0.52 |
Dot Embed /wp-admin/options-general.php?page=dot-embed-settings | 805 | 2.20 | 25.58 | 27.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 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 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dot-embed/dot-embed-settings.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dot-embed/dot-embed-settings.php:116
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (20 tag instead of maximum 10)
dot-embed/dot-embed.php Passed 13 tests
Analyzing the main PHP file in "Dot Embed" version 3.2.16
62 characters long description:
Embed Dot pages and apps by copying and pasting the short code
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin239 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 106 | 235 |
JavaScript | 2 | 0 | 33 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin