Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.71MB] [CPU: ▼51.00ms] Passed 4 tests
Server-side resources used by PDF lightbox viewer by csomorelwood
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.17 | 8.87 ▼30.28 |
Dashboard /wp-admin | 2.30 ▼1.04 | 12.91 ▼47.72 |
Posts /wp-admin/edit.php | 2.31 ▼1.05 | 10.35 ▼36.16 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.58 | 10.90 ▼89.83 |
Media Library /wp-admin/upload.php | 2.31 ▼0.92 | 10.44 ▼25.64 |
Lightbox PDF viewer by Csömör /wp-admin/options-general.php?page=lightbox_pdf_viewer | 2.31 | 9.75 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
PDF lightbox viewer by csomorelwood: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,384 ▲638 | 13.86 ▼0.50 | 7.43 ▲5.80 | 45.41 ▲4.87 |
Dashboard /wp-admin | 2,410 ▲230 | 5.04 ▼0.50 | 87.24 ▼7.90 | 46.07 ▲7.23 |
Posts /wp-admin/edit.php | 2,321 ▲218 | 2.41 ▲0.42 | 33.32 ▼11.33 | 42.34 ▲5.22 |
Add New Post /wp-admin/post-new.php | 6,413 ▲4,887 | 22.26 ▼1.27 | 944.10 ▲267.28 | 44.84 ▼11.57 |
Media Library /wp-admin/upload.php | 1,618 ▲221 | 4.47 ▲0.24 | 102.64 ▼2.88 | 48.14 ▲0.24 |
Lightbox PDF viewer by Csömör /wp-admin/options-general.php?page=lightbox_pdf_viewer | 1,021 | 1.96 | 25.30 | 36.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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 register_post_type was called incorrectly. Post type names must be between 1 and 20 characters in length. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=lightbox_pdf_viewer
- > User notice in wp-includes/functions.php+5905
Function register_post_type was called incorrectly. Post type names must be between 1 and 20 characters in length. Please see Debugging in WordPress for more information. (This message was added in version 4.2.0.)
SRP 50% 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 trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lightbox-pdf-viewer-by-csomor/pdf_viewer_by_csomorelwood.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #2 in lightbox-pdf-viewer-by-csomor/assets to your readme.txt
lightbox-pdf-viewer-by-csomor/pdf_viewer_by_csomorelwood.php 92% from 13 tests
The main file in "PDF lightbox viewer by csomorelwood" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("lightbox-pdf-viewer-by-csomor.php" instead of "pdf_viewer_by_csomorelwood.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected553 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 2 | 0 | 244 |
PHP | 1 | 15 | 26 | 156 |
JavaScript | 3 | 26 | 47 | 153 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 14 | |
▷ Named functions | 14 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/next.png | 0.49KB | 0.37KB | ▼ 23.09% |
assets/images/prev.png | 0.49KB | 0.38KB | ▼ 22.18% |
assets/images/newtab.png | 1.00KB | 0.53KB | ▼ 47.52% |
assets/images/expand.png | 3.22KB | 1.60KB | ▼ 50.39% |
assets/images/zoom-in.png | 6.61KB | 2.86KB | ▼ 56.70% |