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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.40ms] Passed 4 tests
Analyzing server-side resources used by LR Services
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.75 ▲5.06 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.36 ▼0.02 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 44.84 ▼8.51 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.44 ▼18.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.97 ▲7.16 |
LR Services /wp-admin/edit.php?post_type=lrservice | 3.30 | 37.17 |
Add New /wp-admin/post-new.php?post_type=lrservice | 3.38 | 45.37 |
Settings /wp-admin/edit.php?post_type=lrservice&page=lr-service-setting-page | 3.20 | 35.36 |
LR Free Plugins /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins | 3.26 | 29.86 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for LR Services
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.79 ▼0.65 | 2.68 ▲1.08 | 53.99 ▲15.38 |
Dashboard /wp-admin | 2,237 ▲46 | 5.82 ▲0.95 | 99.34 ▼14.60 | 40.91 ▼3.61 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.02 ▼0.02 | 36.98 ▼4.33 | 34.08 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,550 ▲30 | 23.32 ▲0.34 | 647.60 ▲31.89 | 56.16 ▲3.95 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.24 ▲0.04 | 95.18 ▼10.09 | 42.97 ▲0.18 |
LR Services /wp-admin/edit.php?post_type=lrservice | 1,099 | 2.00 | 32.25 | 30.56 |
Add New /wp-admin/post-new.php?post_type=lrservice | 4,964 | 7.78 | 175.16 | 83.32 |
Settings /wp-admin/edit.php?post_type=lrservice&page=lr-service-setting-page | 929 | 2.05 | 32.44 | 30.32 |
LR Free Plugins /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins | 970 | 2.03 | 28.37 | 26.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-service-setting-page
- > Notice in wp-content/plugins/lr-services/lr-service.php+749
Trying to access array offset on value of type bool
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lr-services/lr-free-plugins.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant lr_service_plugin_url - assumed 'lr_service_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/lr-services/lr-free-plugins.php on line 43
- > PHP Warning
Use of undefined constant lr_service_plugin_url - assumed 'lr_service_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/lr-services/lr-free-plugins.php on line 46
- > PHP Warning
Use of undefined constant lr_service_plugin_url - assumed 'lr_service_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/lr-services/lr-free-plugins.php on line 58
- > PHP Warning
Use of undefined constant lr_service_plugin_url - assumed 'lr_service_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/lr-services/lr-free-plugins.php on line 28
- > PHP Warning
Use of undefined constant lr_service_plugin_url - assumed 'lr_service_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/lr-services/lr-free-plugins.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/lr-services/includes/lr-service-style.php:2
- > PHP Warning
Use of undefined constant lr_service_plugin_url - assumed 'lr_service_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/lr-services/lr-free-plugins.php on line 52
- > PHP Warning
Use of undefined constant lr_service_plugin_url - assumed 'lr_service_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/lr-services/lr-free-plugins.php on line 31
- > PHP Warning
Use of undefined constant lr_service_plugin_url - assumed 'lr_service_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/lr-services/lr-free-plugins.php on line 37
- > PHP Warning
Use of undefined constant lr_service_plugin_url - assumed 'lr_service_plugin_url' (this will throw an Error in a future version of PHP) in wp-content/plugins/lr-services/lr-free-plugins.php on line 40
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/feedback.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/gallery.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/slide-menu.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/team.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/new.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/testimonials.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/toggle-bar.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/you-tube.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/insta.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/faq.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/services.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/popup.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=lrservice&page=lr-free-plugins
- > Network (severe)
wp-content/plugins/lr-services/assets/recent-post.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
- Stable tag: Not defined
lr-services/lr-service.php 92% from 13 tests
"LR Services" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lr-services.php" instead of "lr-service.php")
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
Everything looks great! No dangerous files found in this plugin1,667 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 20 | 7 | 874 |
SVG | 1 | 0 | 0 | 504 |
CSS | 6 | 0 | 8 | 287 |
JavaScript | 1 | 0 | 5 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
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 | 21 | |
▷ Named functions | 21 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/3.png | 15.38KB | 8.48KB | ▼ 44.84% |
images/4.png | 11.26KB | 6.45KB | ▼ 42.69% |
images/1.png | 18.79KB | 9.37KB | ▼ 50.14% |
images/2.png | 17.69KB | 9.80KB | ▼ 44.59% |