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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.33ms] Passed 4 tests
This is a short check of server-side resources used by PDF Viewer & 3D PDF Flipbook - DearPDF
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 36.00 ▼8.50 |
Dashboard /wp-admin | 3.35 ▲0.05 | 47.26 ▲1.18 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.32 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 80.52 ▼26.95 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.07 ▼1.49 |
All Post /wp-admin/edit.php?post_type=dearpdf | 3.35 | 40.56 |
Add Post /wp-admin/post-new.php?post_type=dearpdf | 3.34 | 57.50 |
Server storage [IO: ▲7.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 208 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PDF Viewer & 3D PDF Flipbook - DearPDF
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,965 ▲194 | 13.97 ▼0.33 | 11.98 ▲10.17 | 38.89 ▼2.27 |
Dashboard /wp-admin | 2,233 ▲45 | 5.87 ▲0.96 | 105.06 ▲2.16 | 40.77 ▼5.71 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▲0.02 | 40.18 ▲4.21 | 35.66 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.00 ▼0.12 | 653.97 ▲30.24 | 55.82 ▼0.82 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.15 ▼0.00 | 109.12 ▲11.48 | 46.97 ▲1.75 |
All Post /wp-admin/edit.php?post_type=dearpdf | 1,272 | 3.36 | 51.73 | 29.00 |
Add Post /wp-admin/post-new.php?post_type=dearpdf | 2,139 | 4.66 | 139.06 | 50.28 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/dearpdf-lite/dearpdf-lite.php
- > /wp-content/plugins/dearpdf-lite/dearpdf.php
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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #3 is missing in dearpdf-lite/assets to your readme.txt
dearpdf-lite/dearpdf-lite.php Passed 13 tests
Analyzing the main PHP file in "PDF Viewer & 3D PDF Flipbook - DearPDF" version 2.0.38
24 characters long description:
PDF Viewer for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected104,134 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 31,272 | 4,483 | 101,231 |
CSS | 3 | 307 | 47 | 1,937 |
PHP | 3 | 276 | 407 | 816 |
SVG | 9 | 0 | 0 | 150 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 124.00 |
▷ Minimum class complexity | 124.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 52 | |
▷ Static methods | 1 | 1.92% |
▷ Public methods | 48 | 92.31% |
▷ Protected methods | 4 | 7.69% |
▷ 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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/chrome-extension.png | 13.08KB | 6.28KB | ▼ 52.01% |