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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.94ms] Passed 4 tests
Analyzing server-side resources used by PDF Embed Block - Embed PDF file on your web page
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 34.78 ▼7.06 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.14 ▼2.07 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.19 ▲2.68 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.05 | 85.21 ▼7.88 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.70 ▲1.24 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for PDF Embed Block - Embed PDF file on your web page
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.58 ▲0.24 | 2.01 ▲0.27 | 38.57 ▼5.58 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.05 | 87.26 ▼13.94 | 36.77 ▼9.00 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.06 | 38.18 ▲0.20 | 34.53 ▲0.34 |
Add New Post /wp-admin/post-new.php | 6,501 ▲4,975 | 24.62 ▲1.74 | 1,097.30 ▲426.09 | 42.80 ▼1.80 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▼0.02 | 112.84 ▲11.82 | 46.69 ▲4.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant PEB_PLUGIN_VERSION - assumed 'PEB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/pdf-embed-block/dist/editor.asset.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires at least: Invalid version format
pdf-embed-block/index.php 92% from 13 tests
"PDF Embed Block - Embed PDF file on your web page" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pdf-embed-block.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected214 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 1 | 34 | 62 | 86 |
JSON | 2 | 0 | 0 | 69 |
PHP | 2 | 13 | 17 | 55 |
CSS | 2 | 0 | 2 | 2 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
No PNG files were detected