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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.03MB] [CPU: ▼8.33ms] Passed 4 tests
Analyzing server-side resources used by kitpdf | WordPress Gutenberg PDF viewer blocks .
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.77 ▲1.31 | 52.11 ▲10.86 |
Dashboard /wp-admin | 4.65 ▲1.34 | 57.70 ▲12.12 |
Posts /wp-admin/edit.php | 4.67 ▲1.31 | 57.27 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 58.64 ▼49.08 |
Media Library /wp-admin/upload.php | 4.48 ▲1.25 | 43.16 ▲4.59 |
Server storage [IO: ▲8.64MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 552 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for kitpdf | WordPress Gutenberg PDF viewer blocks .
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,071 ▲336 | 18.40 ▲4.00 | 1.73 ▲0.06 | 41.30 ▼10.24 |
Dashboard /wp-admin | 2,467 ▲276 | 9.12 ▲3.21 | 161.51 ▲58.10 | 36.46 ▼8.16 |
Posts /wp-admin/edit.php | 2,392 ▲303 | 6.11 ▲4.13 | 78.73 ▲38.26 | 32.12 ▼3.85 |
Add New Post /wp-admin/post-new.php | 6,513 ▲4,971 | 25.44 ▲6.79 | 991.97 ▲329.81 | 50.76 ▼12.65 |
Media Library /wp-admin/upload.php | 1,531 ▲146 | 6.62 ▲2.32 | 109.69 ▼7.87 | 43.58 ▼3.64 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 212× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Media_Gallery_Field.php:14
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Service/Legacy_Storage_Service_v_1_5.php:15
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Oembed_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Association_Field.php:19
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/pdf-viewer-blocks/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php:4
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: pdf blocks, gutenberg pdf blocks, pdf block
pdf-viewer-blocks/kitpdf.php 85% from 13 tests
The entry point to "kitpdf | WordPress Gutenberg PDF viewer blocks ." version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pdf-viewer-blocks.php" instead of "kitpdf.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
There were no executable files found in this plugin29,234 lines of code in 505 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 172 | 5,189 | 8,450 | 12,925 |
PHP | 246 | 2,789 | 6,942 | 10,555 |
Sass | 48 | 334 | 0 | 1,746 |
PO File | 20 | 610 | 779 | 1,652 |
CSS | 9 | 324 | 1,142 | 1,650 |
JSON | 5 | 0 | 0 | 625 |
Markdown | 4 | 26 | 0 | 71 |
SVG | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 220 | |
▷ Abstract classes | 12 | 5.45% |
▷ Concrete classes | 208 | 94.55% |
▷ Final classes | 1 | 0.48% |
Methods | 985 | |
▷ Static methods | 91 | 9.24% |
▷ Public methods | 777 | 78.88% |
▷ Protected methods | 199 | 20.20% |
▷ Private methods | 9 | 0.91% |
Functions | 110 | |
▷ Named functions | 24 | 21.82% |
▷ Anonymous functions | 86 | 78.18% |
Constants | 36 | |
▷ Global constants | 10 | 27.78% |
▷ Class constants | 26 | 72.22% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin