Benchmarks
Plugin footprint 82% 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: ▲1.80MB] [CPU: ▲10.57ms] 75% from 4 tests
An overview of server-side resources used by TNC PDF viewer
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 621.47ms on /wp-admin/post-new.php?post_type=pdfviewer)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.32 ▲1.85 | 56.32 ▲14.88 |
Dashboard /wp-admin | 5.14 ▲1.80 | 59.49 ▼0.77 |
Posts /wp-admin/edit.php | 5.20 ▲1.84 | 63.93 ▲17.59 |
Add New Post /wp-admin/post-new.php | 7.66 ▲1.77 | 110.06 ▲10.57 |
Media Library /wp-admin/upload.php | 5.00 ▲1.77 | 55.04 ▲24.70 |
Add New /wp-admin/post-new.php?post_type=pdfviewer | 5.19 | 621.47 |
Addons & Integrations /wp-admin/edit.php?post_type=pdfviewer&page=pdf-addon-integration-page | 5.01 | 52.09 |
Generate Shortcode /wp-admin/edit.php?post_type=pdfviewer&page=generate-shortcode-page | 5.08 | 50.54 |
All PDF viewers /wp-admin/edit.php?post_type=pdfviewer | 5.15 | 56.40 |
Global Settings /wp-admin/edit.php?post_type=pdfviewer&page=pdf-viewer-options | 5.08 | 52.60 |
Shortcodes /wp-admin/edit.php?post_type=pdfviewer&page=tnc-pdf-shortcode-page | 5.01 | 61.45 |
Import PDF File /wp-admin/edit.php?post_type=pdfviewer&page=themencode-pdf-viewer-import-file | 5.02 | 47.88 |
Server storage [IO: ▲8.27MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 828 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
pvfw_csf_options |
tnc_pvfw_permalink_flushed |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by TNC PDF viewer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲171 | 14.37 ▼0.34 | 1.55 ▼0.09 | 39.11 ▼7.21 |
Dashboard /wp-admin | 2,321 ▲144 | 5.88 ▲0.29 | 99.31 ▼4.21 | 80.65 ▲37.36 |
Posts /wp-admin/edit.php | 2,232 ▲135 | 2.43 ▲0.49 | 39.48 ▲3.15 | 40.98 ▲2.22 |
Add New Post /wp-admin/post-new.php | 6,410 ▲4,881 | 19.46 ▼3.77 | 990.68 ▲279.56 | 41.88 ▼24.13 |
Media Library /wp-admin/upload.php | 1,529 ▲135 | 4.31 ▲0.08 | 106.31 ▲4.71 | 84.39 ▲42.48 |
Add New /wp-admin/post-new.php?post_type=pdfviewer | 3,250 | 5.25 | 103.85 | 141.80 |
Addons & Integrations /wp-admin/edit.php?post_type=pdfviewer&page=pdf-addon-integration-page | 1,381 | 3.84 | 49.94 | 106.52 |
Generate Shortcode /wp-admin/edit.php?post_type=pdfviewer&page=generate-shortcode-page | 1,394 | 3.80 | 52.62 | 77.40 |
All PDF viewers /wp-admin/edit.php?post_type=pdfviewer | 1,465 | 4.17 | 56.56 | 97.26 |
Global Settings /wp-admin/edit.php?post_type=pdfviewer&page=pdf-viewer-options | 4,124 | 17.33 | 540.52 | 120.82 |
Shortcodes /wp-admin/edit.php?post_type=pdfviewer&page=tnc-pdf-shortcode-page | 1,303 | 3.74 | 56.97 | 114.52 |
Import PDF File /wp-admin/edit.php?post_type=pdfviewer&page=themencode-pdf-viewer-import-file | 1,213 | 3.75 | 49.82 | 88.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- tnc_pvfw_permalink_flushed
- widget_recent-comments
- pvfw_csf_options
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pdf-viewer-by-themencode/admin/index.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pdf-viewer-by-themencode/web/pdf-viewer-single.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pdf-viewer-by-themencode/admin/import-pdf-file.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pdf-viewer-by-themencode/includes/cpt.php:70
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pdf-viewer-by-themencode/includes/scripts.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pdf-viewer-by-themencode/includes/pvfw-new-shortcodes.php:69
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pdf-viewer-by-themencode/admin/generate-shortcode.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pdf-viewer-by-themencode/web/pdf-viewer-single.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pdf-viewer-by-themencode/admin/tnc-pdf-viewer-options.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pdf-viewer-by-themencode/includes/helper-functions.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=pdfviewer&page=themencode-pdf-viewer-import-file
- > Javascript (severe) in unknown
/wp-content/plugins/pdf-viewer-by-themencode/tnc-resources/admin-js.js?ver=2.7.0 38:48 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
- > GET request to /wp-admin/edit.php?post_type=pdfviewer&page=pdf-viewer-options
- > Other (warning) in unknown
/wp-admin/edit.php?post_type=pdfviewer&page=pdf-viewer-options 334 Unrecognized feature: 'web-share'.
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: pdf, pdf embed, pdf flipbook, pdf reader, pdf viewer
pdf-viewer-by-themencode/pdf-viewer-by-themencode.php 92% from 13 tests
This is the main PHP file of "TNC PDF viewer" version 2.7.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
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 plugin115,597 lines of code in 277 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 19 | 14,753 | 978 | 79,963 |
CSS | 10 | 858 | 600 | 12,455 |
PHP | 82 | 2,787 | 1,138 | 10,461 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 970 | 3 | 5,674 |
SVG | 130 | 0 | 54 | 544 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 24.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 7.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 39 | 15.98% |
▷ Public methods | 244 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 61 | |
▷ Named functions | 61 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
185 PNG files occupy 0.63MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/vc_addon_preview.png | 35.94KB | 12.69KB | ▼ 64.70% |
web/images/secondaryToolbarButton-documentProperties@3x.png | 1.61KB | 0.83KB | ▼ 48.18% |
web/schemes/dark-icons/toolbarButton-menuArrows.png | 1.04KB | 0.22KB | ▼ 79.14% |
web/images/Artboard 1 copy 2@2x.png | 0.45KB | 0.31KB | ▼ 29.69% |
web/images/treeitem-collapsed-rtl@2x.png | 0.16KB | 0.21KB | 0.00% |