Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/lr-faq/lr-faq.php+65
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.97ms] Passed 4 tests
A check of server-side resources used by LR Faq
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.98 ▼37.16 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.96 ▼42.50 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.60 ▼46.21 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 6.78 ▼90.02 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 8.10 ▼27.81 |
Add New /wp-admin/post-new.php?post_type=lrfaq | 2.10 | 5.95 |
LR Faqs /wp-admin/edit.php?post_type=lrfaq | 2.10 | 8.15 |
Settings /wp-admin/edit.php?post_type=lrfaq&page=lr-faq-setting-page | 2.10 | 6.22 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
LR Faq: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲121 | 13.24 ▼1.32 | 3.18 ▲1.46 | 54.35 ▲10.32 |
Dashboard /wp-admin | 2,240 ▲49 | 5.86 ▲0.78 | 111.29 ▲2.83 | 39.93 ▲0.94 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.99 ▼0.02 | 39.71 ▼1.37 | 34.53 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,559 ▲36 | 23.33 ▼0.06 | 693.62 ▲60.10 | 55.83 ▼3.16 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.22 ▼0.01 | 99.48 ▼8.13 | 43.86 ▼1.34 |
Add New /wp-admin/post-new.php?post_type=lrfaq | 2,166 | 7.65 | 173.27 | 61.87 |
LR Faqs /wp-admin/edit.php?post_type=lrfaq | 1,093 | 2.09 | 36.37 | 31.02 |
Settings /wp-admin/edit.php?post_type=lrfaq&page=lr-faq-setting-page | 849 | 2.03 | 24.60 | 27.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/lr-faq/lr-faq.php+65
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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)
These server-side errors were triggered
- 30 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lrfaq&page=lr-faq-setting-page
- > Notice in wp-content/plugins/lr-faq/lr-faq.php+163
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lr-faq/lr-faq.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lr-faq/includes/lr-faq-style.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Stable tag: No string
- Donate link: Invalid url: ""
lr-faq/lr-faq.php Passed 13 tests
The main file in "LR Faq" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
LR Faq to the admin panel which allows you to show your faq on your website the easy with deffernt styles
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,016 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 504 |
CSS | 7 | 0 | 8 | 319 |
PHP | 2 | 13 | 7 | 191 |
JavaScript | 1 | 0 | 5 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot4.png | 10.82KB | 6.86KB | ▼ 36.65% |
images/screenshot3.png | 12.30KB | 7.03KB | ▼ 42.81% |
images/screenshot2.png | 15.44KB | 8.95KB | ▼ 42.06% |
images/screenshot1.png | 30.08KB | 18.10KB | ▼ 39.83% |
images/screenshot5.png | 11.55KB | 7.18KB | ▼ 37.78% |