Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.47MB] [CPU: ▲2.99ms] Passed 4 tests
Server-side resources used by PDFjs viewer for Elementor & Gutenberg
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 43.88 ▲3.40 |
Dashboard /wp-admin | 3.81 ▲0.51 | 60.59 ▲5.70 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 57.63 ▲7.08 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 100.88 ▲0.46 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 41.14 ▲2.40 |
Server storage [IO: ▲15.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 422 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
PDFjs viewer for Elementor & Gutenberg: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲108 | 17.21 ▲2.86 | 1.90 ▲0.19 | 43.92 ▼1.86 |
Dashboard /wp-admin | 2,260 ▲72 | 8.49 ▲3.45 | 155.55 ▲39.63 | 40.16 ▼7.27 |
Posts /wp-admin/edit.php | 2,295 ▲206 | 5.80 ▲3.76 | 66.15 ▲26.29 | 35.99 ▼0.61 |
Add New Post /wp-admin/post-new.php | 6,221 ▲4,687 | 21.52 ▼1.61 | 859.49 ▲171.95 | 38.09 ▼16.07 |
Media Library /wp-admin/upload.php | 1,602 ▲217 | 6.90 ▲2.67 | 114.91 ▼1.00 | 40.41 ▼6.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Wpify\\CustomFields\\Implementations\\AbstractPostImplementation' not found in wp-content/plugins/pdfjs-viewer-for-elementor/vendor/wpify/custom-fields/src/Implementations/Comment.php:14
- > PHP Fatal error
Uncaught Error: Class 'Wpify\\CustomFields\\Implementations\\AbstractImplementation' not found in wp-content/plugins/pdfjs-viewer-for-elementor/vendor/wpify/custom-fields/src/Implementations/Options.php:12
- > PHP Fatal error
Uncaught Error: Class 'Wpify\\CustomFields\\Implementations\\AbstractPostImplementation' not found in wp-content/plugins/pdfjs-viewer-for-elementor/vendor/wpify/custom-fields/src/Implementations/Taxonomy.php:13
- > PHP Fatal error
Uncaught Error: Class 'Wpify\\CustomFields\\Implementations\\AbstractPostImplementation' not found in wp-content/plugins/pdfjs-viewer-for-elementor/vendor/wpify/custom-fields/src/Implementations/ProductVariationOptions.php:12
- > PHP Fatal error
Uncaught Error: Class 'Wpify\\CustomFields\\Implementations\\AbstractImplementation' not found in wp-content/plugins/pdfjs-viewer-for-elementor/vendor/wpify/custom-fields/src/Implementations/User.php:13
- > PHP Fatal error
Uncaught Error: Class 'Wpify\\CustomFields\\Implementations\\AbstractImplementation' not found in wp-content/plugins/pdfjs-viewer-for-elementor/vendor/wpify/custom-fields/src/Implementations/GutenbergBlock.php:8
- > PHP Fatal error
Uncaught Error: Class 'Wpify\\CustomFields\\Implementations\\AbstractPostImplementation' not found in wp-content/plugins/pdfjs-viewer-for-elementor/vendor/wpify/custom-fields/src/Implementations/ProductOptions.php:12
- > PHP Fatal error
Uncaught Error: Class 'Wpify\\CustomFields\\Implementations\\AbstractImplementation' not found in wp-content/plugins/pdfjs-viewer-for-elementor/vendor/wpify/custom-fields/src/Implementations/WooCommerceSettings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function PDFjsViewerForElementor\\add_action() in wp-content/plugins/pdfjs-viewer-for-elementor/plugin.php:69
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/pdfjs-viewer-for-elementor/vendor/wpify/custom-fields/src/Api.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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
6 plugin tags: pdf, gutenberg, pdfjs, block-editor, embed...
pdfjs-viewer-for-elementor/pdf-viewer.php 92% from 13 tests
The entry point to "PDFjs viewer for Elementor & Gutenberg" version 1.3.1 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: It is recommended to name the main PHP file as the plugin slug ("pdfjs-viewer-for-elementor.php" instead of "pdf-viewer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin101,085 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 793 | 384 | 93,743 |
PHP | 34 | 743 | 1,432 | 3,135 |
CSS | 3 | 404 | 48 | 2,704 |
Markdown | 1 | 269 | 0 | 757 |
HTML | 1 | 48 | 16 | 369 |
SVG | 54 | 0 | 6 | 305 |
JSON | 3 | 0 | 0 | 72 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 2 | 8.33% |
▷ Concrete classes | 22 | 91.67% |
▷ Final classes | 16 | 72.73% |
Methods | 239 | |
▷ Static methods | 20 | 8.37% |
▷ Public methods | 226 | 94.56% |
▷ Protected methods | 6 | 2.51% |
▷ Private methods | 7 | 2.93% |
Functions | 40 | |
▷ Named functions | 1 | 2.50% |
▷ Anonymous functions | 39 | 97.50% |
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
3 PNG files occupy 0.23MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/pdfjs/web/images/shadow.png | 0.26KB | 0.35KB | 0.00% |
vendor/wpify/custom-fields/build/images/flags.007b2705.png | 69.20KB | 23.42KB | ▼ 66.16% |
vendor/wpify/custom-fields/build/images/flags@2x.9d5328fb.png | 170.28KB | 68.04KB | ▼ 60.04% |