Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼3.65ms] Passed 4 tests
Server-side resources used by Embed PDF for WPForms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.30 ▼0.68 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.39 ▼14.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.81 ▲7.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.24 ▼1.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 33.48 ▲2.26 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Embed PDF for WPForms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲3 | 14.67 ▲0.60 | 1.54 ▼0.38 | 36.43 ▼0.50 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▲0.09 | 93.04 ▼8.04 | 41.84 ▼1.26 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.94 ▼0.04 | 40.20 ▼4.21 | 33.56 ▼4.38 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.18 ▼0.07 | 616.63 ▲17.63 | 54.80 ▼13.40 |
Media Library /wp-admin/upload.php | 1,394 ▼0 | 4.16 ▼0.05 | 97.34 ▼6.98 | 41.57 ▼1.88 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #2, #3 in embed-pdf-wpforms/assets to your readme.txt
embed-pdf-wpforms/embed-pdf-wpforms.php Passed 13 tests
The primary PHP file in "Embed PDF for WPForms" version 1.1.1 is used by WordPress to initiate all plugin functionality
48 characters long description:
Add-on for WPForms. Provides a PDF Viewer field.
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
No dangerous file extensions were detected1,570 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 798 |
PHP | 2 | 70 | 205 | 387 |
JavaScript | 6 | 52 | 127 | 335 |
CSS | 4 | 4 | 11 | 46 |
Markdown | 1 | 2 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 2 | 15.38% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin