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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.07ms] Passed 4 tests
An overview of server-side resources used by edocr Document Viewer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.38 ▼1.35 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.25 ▲2.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.69 ▼1.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.08 ▼0.16 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.02 ▼1.41 |
edocr Document Viewer /wp-admin/options-general.php?page=edocr_viewer | 3.23 | 30.38 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for edocr Document Viewer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.49 ▼0.77 | 1.80 ▼0.56 | 38.23 ▼9.48 |
Dashboard /wp-admin | 2,213 ▲28 | 4.83 ▼1.05 | 103.56 ▲4.51 | 39.23 ▼3.88 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.05 | 36.03 ▼3.06 | 35.19 ▼2.59 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 18.39 ▲0.26 | 624.06 ▼19.89 | 60.01 ▲3.48 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.05 | 97.45 ▼14.36 | 42.55 ▼2.64 |
edocr Document Viewer /wp-admin/options-general.php?page=edocr_viewer | 951 | 2.06 | 23.49 | 30.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Congratulations! This plugin passed the SRP test
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 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #2, #3 in edocr-document-viewer/assets to your readme.txt
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
edocr-document-viewer/edocr-document-viewer.php Passed 13 tests
The main PHP script in "edocr Document Viewer" version 1.0.4 is automatically included on every request by WordPress
136 characters long description:
The edocr Document Viewer for Wordpress allows you to embed your documents on your WordPress site using our feature rich document viewer
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
Good job! No executable or dangerous file extensions detected239 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 21 | 15 | 178 |
Markdown | 1 | 40 | 0 | 61 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/edocr-master-logo-rgb-w-back.png | 19.37KB | 7.85KB | ▼ 59.50% |