Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.27ms] Passed 4 tests
This is a short check of server-side resources used by PDF Embedder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.47 ▼6.87 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.52 ▼1.06 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.39 ▲5.86 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.59 ▼19.83 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.00 ▲2.67 |
PDF Embedder /wp-admin/options-general.php?page=pdfemb_list_options | 3.24 | 33.18 |
Server storage [IO: ▲8.59MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 228 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
PDF Embedder: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.80 ▲0.24 | 1.68 ▼0.43 | 45.76 ▲3.33 |
Dashboard /wp-admin | 2,212 ▲21 | 5.90 ▲0.02 | 99.44 ▼0.92 | 42.32 ▲2.77 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▲0.00 | 39.48 ▲0.75 | 35.95 ▲2.00 |
Add New Post /wp-admin/post-new.php | 6,191 ▲4,677 | 18.98 ▲1.39 | 894.85 ▲226.76 | 57.42 ▲3.45 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.20 ▲0.02 | 95.96 ▼0.34 | 42.12 ▼1.55 |
PDF Embedder /wp-admin/options-general.php?page=pdfemb_list_options | 1,402 | 2.12 | 24.72 | 61.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/pdf-embedder/core/install_skin.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pdf-embedder/pdf_embedder.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: embed, pdf viewer, office, intranet, document...
pdf-embedder/pdf_embedder.php 85% from 13 tests
The entry point to "PDF Embedder" version 4.6.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pdf-embedder.php" instead of "pdf_embedder.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin72,581 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 13,893 | 807 | 68,004 |
PO File | 7 | 888 | 989 | 3,015 |
PHP | 3 | 285 | 209 | 951 |
Sass | 4 | 93 | 0 | 607 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 74 | |
▷ Static methods | 2 | 2.70% |
▷ Public methods | 36 | 48.65% |
▷ Protected methods | 38 | 51.35% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/toolbarButton-zoomOut.png | 0.09KB | 0.12KB | 0.00% |
assets/img/pdf-embedder.png | 9.06KB | 3.01KB | ▼ 66.75% |
assets/img/partners/nextgen.png | 5.33KB | 3.03KB | ▼ 43.19% |
assets/img/toolbarButton-download.png | 0.25KB | 0.39KB | 0.00% |
assets/img/partners/envira-gallery-lite.png | 4.68KB | 1.46KB | ▼ 68.77% |