Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.23MB] [CPU: ▼43.59ms] Passed 4 tests
This is a short check of server-side resources used by Algori PDF Viewer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 11.93 ▼27.88 |
Dashboard /wp-admin | 2.78 ▼0.53 | 15.14 ▼35.72 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 14.65 ▼30.87 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 14.18 ▼79.89 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 14.18 ▼23.87 |
Server storage [IO: ▲8.63MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 385 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Algori PDF Viewer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.18 ▼0.02 | 1.62 ▼0.11 | 38.70 ▼5.27 |
Dashboard /wp-admin | 2,192 ▲18 | 5.51 ▼0.13 | 87.70 ▼0.15 | 36.59 ▼4.15 |
Posts /wp-admin/edit.php | 2,097 ▼6 | 1.99 ▲0.00 | 39.53 ▲0.91 | 36.86 ▲4.40 |
Add New Post /wp-admin/post-new.php | 6,199 ▲4,668 | 18.98 ▼3.91 | 839.53 ▲242.63 | 90.64 ▲25.96 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.16 ▼0.07 | 96.88 ▼5.68 | 44.45 ▼0.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: pdf viewer, pdf file viewer, block editor, pdf reader, pdf print...
algori-pdf-viewer/algori-pdf-viewer-lite.php 85% from 13 tests
The main PHP file in "Algori PDF Viewer" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 234 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("algori-pdf-viewer.php" instead of "algori-pdf-viewer-lite.php")
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
No dangerous file extensions were detected67,726 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,243 | 332 | 65,141 |
CSS | 2 | 263 | 35 | 1,933 |
HTML | 1 | 42 | 16 | 299 |
SVG | 9 | 0 | 0 | 150 |
Markdown | 1 | 37 | 0 | 108 |
PHP | 3 | 10 | 61 | 49 |
Sass | 3 | 7 | 1 | 33 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 1 | |
▷ Named functions | 1 | 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
74 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/web/images/toolbarButton-pageUp-rtl@2x.png | 0.40KB | 0.64KB | 0.00% |
dist/web/images/treeitem-collapsed@2x.png | 0.15KB | 0.20KB | 0.00% |
dist/web/images/toolbarButton-viewAttachments@2x.png | 0.84KB | 1.56KB | 0.00% |
dist/web/images/toolbarButton-pageDown.png | 0.23KB | 0.36KB | 0.00% |
dist/web/images/secondaryToolbarButton-rotateCcw@2x.png | 0.71KB | 1.12KB | 0.00% |