Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.87MB] [CPU: ▼104.84ms] Passed 4 tests
Server-side resources used by Wordpress PDF Light Viewer Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▲0.71 | 42.17 ▲15.77 |
Dashboard /wp-admin | 4.06 ▲1.00 | 93.48 ▲47.20 |
Posts /wp-admin/edit.php | 4.09 ▲0.98 | 98.79 ▲60.88 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.86 | 145.56 ▼536.60 |
Media Library /wp-admin/upload.php | 3.94 ▲0.94 | 91.35 ▲54.26 |
Tags /wp-admin/edit-tags.php?taxonomy=pdf_lv_tag&post_type=pdf_lv | 3.95 | 78.45 |
Categories /wp-admin/edit-tags.php?taxonomy=pdf_lv_category&post_type=pdf_lv | 3.95 | 82.15 |
PDFs /wp-admin/edit.php?post_type=pdf_lv | 4.00 | 82.79 |
PDF Light Viewer /wp-admin/options-general.php?page=pdf-light-viewer | 3.99 | 108.49 |
Import PDF /wp-admin/post-new.php?post_type=pdf_lv | 4.44 | 109.42 |
Server storage [IO: ▲15.86MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/pdf-light-viewer/" and "wp-content/uploads/"
- (new file) wp-content/pdf-light-viewer-logs/.empty
Filesystem: 956 new files
Database: no new tables, 2 new options
New WordPress options |
---|
pdf-light-viewer-pointers-viewed |
pdf-light-viewer-show-post-type |
Browser metrics Passed 4 tests
Wordpress PDF Light Viewer Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲238 | 16.18 ▲0.46 | 10.58 ▲0.02 | 52.58 ▼7.13 |
Dashboard /wp-admin | 3,084 ▲153 | 6.36 ▲0.39 | 153.29 ▼15.32 | 138.22 ▲11.85 |
Posts /wp-admin/edit.php | 2,848 ▲109 | 2.79 ▲0.07 | 75.97 ▲1.23 | 95.24 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,712 ▲29 | 13.81 ▼4.94 | 304.44 ▼89.87 | 140.29 ▲12.06 |
Media Library /wp-admin/upload.php | 1,874 ▲67 | 5.44 ▲0.42 | 155.28 ▲1.74 | 164.73 ▲44.73 |
Tags /wp-admin/edit-tags.php?taxonomy=pdf_lv_tag&post_type=pdf_lv | 1,852 | 2.69 | 64.91 | 87.13 |
Categories /wp-admin/edit-tags.php?taxonomy=pdf_lv_category&post_type=pdf_lv | 1,883 | 2.79 | 67.39 | 85.81 |
PDFs /wp-admin/edit.php?post_type=pdf_lv | 1,853 | 2.93 | 77.28 | 110.81 |
PDF Light Viewer /wp-admin/options-general.php?page=pdf-light-viewer | 6,004 | 3.56 | 89.61 | 206.71 |
Import PDF /wp-admin/post-new.php?post_type=pdf_lv | 2,833 | 5.40 | 124.14 | 138.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 2 options in the database
- pdf-light-viewer-pointers-viewed
- pdf-light-viewer-show-post-type
Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pdf-light-viewer/resources/views/requirements.php
- > /wp-content/plugins/pdf-light-viewer/resources/views/server-libs-requirements-doc.php
- 17× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pdf-light-viewer/resources/templates/shortcode-pdf-light-viewer.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'PdfLightViewer_PdfController' not found in wp-content/plugins/pdf-light-viewer/resources/templates/shortcode-pdf-light-viewer-nav-top.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/pdf-light-viewer/resources/views/pro-placeholder.php:6
- > PHP Fatal error
Uncaught Error: Class 'PdfLightViewer_PdfController' not found in wp-content/plugins/pdf-light-viewer/resources/templates/shortcode-pdf-light-viewer.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/pdf-light-viewer/resources/views/shortcode-top-panel.php:54
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pdf-light-viewer/resources/templates/shortcode-pdf-light-viewer-nav-top.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/pdf-light-viewer/resources/views/serverless-placeholder.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pdf-light-viewer/resources/views/shortcode-top-panel.php on line 52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pdf-light-viewer/vendor/webdevstudios/cmb2/example-functions.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/pdf-light-viewer/resources/views/metabox/usage.php:12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid url: ""
pdf-light-viewer/pdf-light-viewer.php Passed 13 tests
Analyzing the main PHP file in "Wordpress PDF Light Viewer Plugin" version 1.4.12
130 characters long description:
Wordpress plugin to embed normal, large and very large pdf documents to the wordpress site as flipbooks with thumbnail navigation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected123,188 lines of code in 619 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 250 | 11,073 | 11,469 | 44,670 |
PO File | 122 | 13,170 | 17,226 | 29,630 |
CSS | 65 | 3,985 | 3,589 | 19,141 |
JSON | 43 | 5 | 0 | 8,845 |
PHP | 52 | 1,699 | 2,646 | 7,302 |
Markdown | 31 | 1,566 | 0 | 4,242 |
Sass | 17 | 679 | 32 | 4,090 |
LESS | 4 | 413 | 41 | 1,791 |
Handlebars | 28 | 458 | 30 | 1,577 |
HTML | 4 | 283 | 8 | 1,486 |
SVG | 2 | 0 | 0 | 411 |
YAML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 30.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 34 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 349 | |
▷ Static methods | 129 | 36.96% |
▷ Public methods | 331 | 94.84% |
▷ Protected methods | 14 | 4.01% |
▷ Private methods | 4 | 1.15% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 16 | |
▷ Global constants | 6 | 37.50% |
▷ Class constants | 10 | 62.50% |
▷ Public constants | 10 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
41 PNG files occupy 0.84MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
documentation/img/fabric_of_squares_gray.png | 55.15KB | 57.35KB | 0.00% |
vendor/webdevstudios/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
resources/assets/img/logo100.png | 2.80KB | 2.00KB | ▼ 28.67% |
documentation/img/logo100.png | 2.80KB | 2.00KB | ▼ 28.67% |
resources/assets/img/zoom.png | 0.74KB | 0.51KB | ▼ 31.23% |