Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.11ms] Passed 4 tests
Analyzing server-side resources used by Adobe Embedded PDF Viewer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 47.30 ▲4.79 |
Dashboard /wp-admin | 3.48 ▲0.13 | 63.52 ▼3.37 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 57.55 ▲4.27 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 99.48 ▼9.07 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 42.56 ▲3.75 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 11 new options
New WordPress options |
---|
adobe_embedded_pdf_viewer_modal_initial_page_view_field |
db_upgraded |
adobe_embedded_pdf_viewer_modal_height_field |
theysaidso_admin_options |
adobe_embedded_pdf_viewer_modal_exit_type_field |
adobe_embedded_pdf_viewer_modal_embed_mode_field |
widget_theysaidso_widget |
widget_recent-posts |
adobe_embedded_pdf_viewer_modal_maxwidth_field |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Adobe Embedded PDF Viewer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲189 | 14.47 ▲0.28 | 59.26 ▲57.60 | 40.82 ▼3.77 |
Dashboard /wp-admin | 2,219 ▲42 | 5.68 ▲0.02 | 98.23 ▲10.02 | 83.89 ▲44.65 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.01 ▲0.01 | 38.65 ▲1.70 | 36.54 ▲5.31 |
Add New Post /wp-admin/post-new.php | 6,258 ▲4,732 | 19.65 ▼3.54 | 932.78 ▲245.30 | 43.47 ▼16.52 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.26 ▲0.12 | 111.71 ▲6.43 | 47.33 ▲1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- adobe_embedded_pdf_viewer_modal_exit_type_field
- db_upgraded
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: embed, adobe, pdf, acrobat, viewer
adobe-embedded-pdf-viewer/adobe-embedded-pdf-viewer.php Passed 13 tests
The main PHP file in "Adobe Embedded PDF Viewer" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
90 characters long description:
Embed PDF's in WordPress using the Adobe PDF Embed API and replace the default PDF viewer.
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 detected2,029 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 61 | 62 | 1,049 |
PHP | 10 | 102 | 73 | 792 |
CSS | 1 | 21 | 0 | 96 |
JSON | 2 | 0 | 0 | 92 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/Adobe_Scaled_Transparent.png | 16.77KB | 3.22KB | ▼ 80.80% |
admin/images/acrobat-pro-cc.png | 0.33KB | 0.26KB | ▼ 21.79% |