Benchmarks
Plugin footprint 65% 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: ▼1.16MB] [CPU: ▼48.12ms] Passed 4 tests
Analyzing server-side resources used by Master PDF Viewer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▼0.65 | 13.25 ▼30.70 |
Dashboard /wp-admin | 2.85 ▼0.45 | 18.05 ▼34.65 |
Posts /wp-admin/edit.php | 2.85 ▼0.50 | 17.59 ▼34.72 |
Add New Post /wp-admin/post-new.php | 2.85 ▼3.03 | 18.42 ▼92.41 |
Media Library /wp-admin/upload.php | 2.85 ▼0.38 | 15.81 ▼22.41 |
Server storage [IO: ▲13.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 209 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Master PDF Viewer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 15.08 ▲0.70 | 103.69 ▲101.79 | 46.57 ▼1.82 |
Dashboard /wp-admin | 2,206 ▲21 | 5.86 ▼0.02 | 114.29 ▲9.56 | 41.17 ▲0.99 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.13 | 35.25 ▼5.69 | 33.27 ▼6.05 |
Add New Post /wp-admin/post-new.php | 6,354 ▲4,821 | 27.81 ▲4.61 | 824.95 ▲140.27 | 56.03 ▼1.87 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.16 ▼0.02 | 94.23 ▼21.53 | 43.02 ▼4.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function WP_Block_Type_Registry::register was called incorrectly. Block type "pdf-viewer/mpv-pdf-viewer" is already registered. Please see Debugging in WordPress for more information. (This message was added in version 5.0.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
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 | 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× 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/master-pdf-viewer/functions.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/master-pdf-viewer/build/render.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: block
master-pdf-viewer/master-pdf-viewer.php 85% from 13 tests
"Master PDF Viewer" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path must begin with a forward slash character ("/mpv")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("mpv")
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
No dangerous file extensions were detected110,826 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,082 | 624 | 107,217 |
CSS | 4 | 405 | 67 | 2,699 |
HTML | 1 | 48 | 17 | 369 |
SVG | 50 | 0 | 0 | 291 |
PHP | 4 | 27 | 35 | 131 |
JSON | 2 | 0 | 0 | 119 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
pdf-js/web/images/shadow.png | 0.26KB | 0.35KB | 0.00% |