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.27MB] [CPU: ▲0.27ms] Passed 4 tests
Analyzing server-side resources used by Document Embedder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 43.19 ▲2.58 |
Dashboard /wp-admin | 3.58 ▲0.28 | 50.59 ▲1.62 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 50.37 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 96.22 ▼3.43 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 39.69 ▲5.15 |
Server storage [IO: ▲2.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 195 new files
Database: no new tables, 8 new options
New WordPress options |
---|
ppv_import |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
document-emberdder-redirect |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Document Embedder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,583 ▼1,152 | 10.26 ▼4.48 | 1.68 ▼0.42 | 31.39 ▼18.74 |
Dashboard /wp-admin | 2,247 ▲59 | 4.93 ▼0.95 | 99.25 ▼8.19 | 89.05 ▲42.85 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 1.97 ▼0.05 | 40.04 ▲0.34 | 37.67 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6,614 ▲5,071 | 29.39 ▲10.98 | 999.87 ▲376.10 | 41.32 ▼20.33 |
Media Library /wp-admin/upload.php | 1,420 ▲38 | 4.19 ▲0.01 | 97.36 ▼6.06 | 47.80 ▲2.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- theysaidso_admin_options
- document-emberdder-redirect
- ppv_import
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 15× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant PPV_VER - assumed 'PPV_VER' (this will throw an Error in a future version of PHP) in wp-content/plugins/document-emberdder/inc/Base/Activate.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function PPV\\Base\\plugin_basename() in wp-content/plugins/document-emberdder/inc/Base/Activate.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function PPV\\Base\\add_action() in wp-content/plugins/document-emberdder/inc/Base/Help.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function PPV\\Model\\add_action() in wp-content/plugins/document-emberdder/inc/Model/EnqueueAssets.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/document-emberdder/document-embedder.php:17
- > PHP Warning
Use of undefined constant PPV__FILE__ - assumed 'PPV__FILE__' (this will throw an Error in a future version of PHP) in wp-content/plugins/document-emberdder/inc/Base/Activate.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function PPV\\Model\\add_shortcode() in wp-content/plugins/document-emberdder/inc/Services/Shortcode.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/document-emberdder/admin/inc/metabox.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function PPV\\Model\\add_action() in wp-content/plugins/document-emberdder/inc/Model/Metabox.php:12
- > PHP Warning
Use of undefined constant PPV__FILE__ - assumed 'PPV__FILE__' (this will throw an Error in a future version of PHP) in wp-content/plugins/document-emberdder/inc/Base/Activate.php on line 23
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: google drive, google docs, document, powerpoint, embed pdf
document-emberdder/document-embedder.php 85% from 13 tests
"Document Embedder" version 1.8.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("document-emberdder.php" instead of "document-embedder.php")
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
Success! There were no dangerous files found in this plugin39,821 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 103 | 3,567 | 1,548 | 15,964 |
JavaScript | 9 | 1,305 | 499 | 6,597 |
PO File | 21 | 3,235 | 3,632 | 6,587 |
Sass | 16 | 970 | 3 | 5,674 |
CSS | 8 | 379 | 515 | 4,996 |
SVG | 2 | 0 | 0 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 21.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 2 | 2.60% |
▷ Concrete classes | 75 | 97.40% |
▷ Final classes | 0 | 0.00% |
Methods | 299 | |
▷ Static methods | 57 | 19.06% |
▷ Public methods | 299 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 27 | 90.00% |
▷ Anonymous functions | 3 | 10.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.22MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/images/shield_success.png | 21.11KB | 10.43KB | ▼ 50.60% |
img/error.png | 29.40KB | 18.08KB | ▼ 38.53% |
img/donation.png | 12.88KB | 5.68KB | ▼ 55.91% |
img/format.png | 66.53KB | 43.24KB | ▼ 35.01% |
admin/framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |