Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.93ms] Passed 4 tests
An overview of server-side resources used by PDF.world Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.14 ▼2.31 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.47 ▼4.72 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 53.40 ▼2.16 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.42 ▼26.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.52 ▲4.80 |
Server storage [IO: ▲12.73MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
PDF.world Block: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲198 | 20.61 ▲6.26 | 5.76 ▲4.23 | 43.02 ▼0.99 |
Dashboard /wp-admin | 2,280 ▲99 | 10.68 ▲4.98 | 239.28 ▲132.05 | 43.92 ▲2.80 |
Posts /wp-admin/edit.php | 2,220 ▲120 | 10.24 ▲8.27 | 96.30 ▲55.86 | 33.73 ▼5.55 |
Add New Post /wp-admin/post-new.php | 6,192 ▲4,666 | 18.84 ▼4.12 | 815.38 ▲147.49 | 39.85 ▼24.69 |
Media Library /wp-admin/upload.php | 1,505 ▲102 | 12.27 ▲8.10 | 143.20 ▲41.13 | 40.18 ▼7.72 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pdf-world-de-pdf-blatterbar-einfugen/public/public.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Screenshot #1 (Anleitung, wie eine blätterbare PDF Datei in deinem Blog eingefügt werden kann) image missing
pdf-world-de-pdf-blatterbar-einfugen/pdf-viewer-block.php 77% from 13 tests
The main PHP script in "PDF.world Block" version 1.2 is automatically included on every request by WordPress
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 ("pdf-world-de-pdf-blatterbar-einfugen.php" instead of "pdf-viewer-block.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 666 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin923 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 2 | 613 |
JavaScript | 2 | 45 | 0 | 230 |
PHP | 4 | 10 | 61 | 60 |
CSS | 2 | 6 | 0 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 3.00MB with 2.80MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 2,265.94KB | 103.14KB | ▼ 95.45% |
assets/icon-256x256.png | 192.64KB | 9.57KB | ▼ 95.03% |
assets/icon-128x128.png | 48.29KB | 4.44KB | ▼ 90.81% |
assets/banner-772x250.png | 566.66KB | 44.30KB | ▼ 92.18% |