Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.97ms] Passed 4 tests
This is a short check of server-side resources used by PDF Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.79 ▼0.53 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.17 ▼6.67 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.85 ▼1.64 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.52 ▼7.47 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.21 ▼4.09 |
PDF Widget /wp-admin/options-general.php?page=pdf-widget | 3.24 | 33.03 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PDF Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲179 | 14.48 ▲0.24 | 62.40 ▲60.27 | 40.92 ▼5.22 |
Dashboard /wp-admin | 2,242 ▲39 | 5.88 ▲0.86 | 106.18 ▼10.28 | 44.07 ▼0.14 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.03 ▼0.09 | 42.61 ▲6.94 | 38.18 ▼5.64 |
Add New Post /wp-admin/post-new.php | 1,565 ▲15 | 23.22 ▲0.05 | 600.29 ▼57.72 | 53.07 ▲2.14 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.23 ▲0.03 | 96.11 ▼14.95 | 41.88 ▼3.19 |
PDF Widget /wp-admin/options-general.php?page=pdf-widget | 835 | 2.07 | 27.98 | 34.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- 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
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/pdf-widget/widgets/pdf-widget/pdf-widget.php:4
- > PHP Fatal error
Uncaught Error: Class 'Bricks\\Element' not found in wp-content/plugins/pdf-widget/widgets/pdf-widget/inc/pdf-widget-functions.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: pdf, adobe, elementor
pdf-widget/pdf-widget.php Passed 13 tests
The entry point to "PDF Widget" version 1.2 is a PHP file that has certain tags in its header comment area
93 characters long description:
Enables a Elementor Widget and [adobepdf] Shortcode to embed PDF's withe Adobe PDF Embed API.
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
Good job! No executable or dangerous file extensions detected247 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 157 | 243 |
JavaScript | 1 | 7 | 0 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 4 | 18.18% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin