Benchmarks
Plugin footprint 83% 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: ▲0.02MB] [CPU: ▼3.46ms] Passed 4 tests
An overview of server-side resources used by Embed Docs - Elementor Files Addon,Elementor Docs Addon,Embed PDF, Word, PowerPoint and Excel Files in Gutenberg & Elementor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.40 ▼1.77 |
Dashboard /wp-admin | 3.33 ▼0.01 | 49.84 ▼11.53 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.80 ▲2.25 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 100.08 ▼0.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.11 ▼0.22 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
pdf_elementor_activation_time |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Embed Docs - Elementor Files Addon,Elementor Docs Addon,Embed PDF, Word, PowerPoint and Excel Files in Gutenberg & Elementor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.73 ▲0.13 | 2.08 ▲0.36 | 44.05 ▲0.50 |
Dashboard /wp-admin | 2,209 ▲41 | 5.65 ▲0.08 | 95.39 ▼4.17 | 41.63 ▼0.91 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 1.96 ▼0.04 | 36.24 ▼1.30 | 36.74 ▼0.42 |
Add New Post /wp-admin/post-new.php | 6,380 ▲4,854 | 27.79 ▲4.67 | 931.09 ▲270.02 | 57.05 ▼4.00 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.28 ▲0.13 | 102.22 ▼10.00 | 40.93 ▼4.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- pdf_elementor_activation_time
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function ElementorEmbedDocs\\add_action() in wp-content/plugins/embed-docs/plugin.php:89
- > 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 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #2 (Embed Any Document Gutenberg Block), #3 (Block editor view and block options), #4 (Insert Document options for the Gutenberg Block), #5 (Add from URL option for the Gutenberg Block)
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
embed-docs/index.php 77% from 13 tests
Analyzing the main PHP file in "Embed Docs - Elementor Files Addon,Elementor Docs Addon,Embed PDF, Word, PowerPoint and Excel Files in Gutenberg & Elementor" version 3.0.1
Please make the necessary changes and fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")
- Main file name: Name the main plugin file the same as the plugin slug ("embed-docs.php" instead of "index.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,161 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 169 | 458 | 838 |
JavaScript | 1 | 45 | 159 | 242 |
CSS | 1 | 13 | 0 | 81 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 33 | 78.57% |
▷ Protected methods | 8 | 19.05% |
▷ Private methods | 1 | 2.38% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.89MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 122.30KB | 33.25KB | ▼ 72.81% |
assets/pdf-icon.png | 3.81KB | 2.19KB | ▼ 42.54% |
assets/googledrive-icon.png | 5.19KB | 2.56KB | ▼ 50.60% |
assets/icon-onedrive.png | 1.66KB | 1.57KB | ▼ 5.06% |
assets/ppt-icon.png | 3.42KB | 2.09KB | ▼ 38.87% |