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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.17ms] Passed 4 tests
Analyzing server-side resources used by Look Inside PDF
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.32 ▼0.64 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.84 ▲0.71 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.44 ▼2.57 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.51 ▼14.17 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.96 ▲2.06 |
Server storage [IO: ▲0.15MB] [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: 43 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
look_inside_pdf_installed |
widget_theysaidso_widget |
look_inside_pdf_version |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Look Inside PDF
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.64 ▼0.92 | 1.73 ▼0.37 | 42.91 ▲1.67 |
Dashboard /wp-admin | 2,231 ▲46 | 4.86 ▲0.04 | 112.78 ▲10.08 | 43.37 ▼3.38 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.01 ▼0.04 | 42.44 ▼4.40 | 35.44 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,558 ▲16 | 23.68 ▲5.53 | 642.70 ▲29.64 | 66.64 ▲10.93 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.32 ▲0.16 | 97.83 ▼7.47 | 44.79 ▼0.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- theysaidso_admin_options
- look_inside_pdf_version
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- look_inside_pdf_installed
Smoke tests 50% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/look-inside-pdf/templates/product/after-add-to-cart.php
- > /wp-content/plugins/look-inside-pdf/templates/product/single.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: show_on_product_thumb in wp-content/plugins/look-inside-pdf/templates/product/single.php on line 2
- > PHP Notice
Undefined variable: li_pdf_images in wp-content/plugins/look-inside-pdf/templates/product/single.php on line 47
- > PHP Notice
Undefined variable: lipdf_show_read_more_button_after_product_thumb in wp-content/plugins/look-inside-pdf/templates/product/single.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/look-inside-pdf/templates/admin/settings.php:2
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/look-inside-pdf/templates/product/single.php on line 47
- > PHP Notice
Undefined variable: lipdf_read_more_button_text in wp-content/plugins/look-inside-pdf/templates/product/after-add-to-cart.php on line 2
- > PHP Notice
Undefined variable: show_on_product_thumb in wp-content/plugins/look-inside-pdf/templates/product/single.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/look-inside-pdf/templates/admin/product/options.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Requires php: The plugin version is formatted incorrectly
look-inside-pdf/look-inside-pdf.php 92% from 13 tests
The main PHP file in "Look Inside PDF" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Git Repository: A Git repository was detected inside this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,074 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 697 | 1,196 | 2,517 |
CSS | 2 | 40 | 8 | 196 |
Markdown | 1 | 66 | 0 | 181 |
JSON | 3 | 0 | 0 | 100 |
JavaScript | 2 | 24 | 11 | 80 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 163 | |
▷ Static methods | 15 | 9.20% |
▷ Public methods | 123 | 75.46% |
▷ Protected methods | 6 | 3.68% |
▷ Private methods | 34 | 20.86% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin