Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.89MB] [CPU: ▼2.46ms] Passed 4 tests
Analyzing server-side resources used by Local Listing Pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 41.65 ▼2.71 |
Dashboard /wp-admin | 4.23 ▲0.93 | 50.18 ▼1.95 |
Posts /wp-admin/edit.php | 4.28 ▲0.93 | 52.78 ▲5.11 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.86 | 89.28 ▼9.85 |
Media Library /wp-admin/upload.php | 4.09 ▲0.86 | 41.94 ▲4.68 |
Server storage [IO: ▲4.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 355 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Local Listing Pro: 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,845 ▲88 | 13.60 ▼1.14 | 5.19 ▲3.18 | 40.33 ▼7.64 |
Dashboard /wp-admin | 2,229 ▲44 | 5.81 ▼0.07 | 96.79 ▼24.08 | 41.24 ▼5.36 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.01 ▼0.04 | 38.92 ▲5.45 | 34.48 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 22.14 ▲4.36 | 673.51 ▲1.63 | 62.50 ▲4.68 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.18 ▼0.06 | 103.98 ▼14.46 | 43.25 ▼5.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 15× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/local-listing-pro/templates/local_listing_pro_reactivate_business.php
- > /wp-content/plugins/local-listing-pro/templates/llsp_upgraded_business_mail.php
- > /wp-content/plugins/local-listing-pro/templates/emails/llsp_submit_business_mail.php
- > /wp-content/plugins/local-listing-pro/templates/emails/llsp_delete_subscription.php
- > /wp-content/plugins/local-listing-pro/templates/emails/llsp_invoice.php
- > /wp-content/plugins/local-listing-pro/index.php
- > /wp-content/plugins/local-listing-pro/templates/local_listing_pro_business_details.php
- > /wp-content/plugins/local-listing-pro/templates/local_listing_pro_citations.php
- > /wp-content/plugins/local-listing-pro/templates/local_listing_pro_page_loader.php
- > /wp-content/plugins/local-listing-pro/inc/Stripe/build.php
- 146× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/local-listing-pro/templates/emails/llsp_admin_support_ticket.php on line 639
- > PHP Fatal error
Uncaught Error: Class 'Stripe_InvalidRequestError' not found in wp-content/plugins/local-listing-pro/inc/Stripe1/lib/Stripe/RateLimitError.php:3
- > PHP Fatal error
Uncaught Error: Class 'StripeTestCase' not found in wp-content/plugins/local-listing-pro/inc/Stripe1/test/Stripe/ChargeTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'StripeTestCase' not found in wp-content/plugins/local-listing-pro/inc/Stripe1/test/Stripe/CardErrorTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/local-listing-pro/inc/Stripe/tests/ApplicationFeeRefundTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/local-listing-pro/inc/Stripe1/lib/Stripe/Transfer.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe_ApiResource' not found in wp-content/plugins/local-listing-pro/inc/Stripe1/lib/Stripe/Card.php:3
- > PHP Fatal error
Uncaught Error: Class 'StripeTestCase' not found in wp-content/plugins/local-listing-pro/inc/Stripe1/test/Stripe/BitcoinReceiverTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ExternalAccount' not found in wp-content/plugins/local-listing-pro/inc/Stripe/lib/AlipayAccount.php:5
- > PHP Fatal error
Uncaught Error: Class 'UnitTestCase' not found in wp-content/plugins/local-listing-pro/inc/Stripe1/test/Stripe/Error.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #4 is required in local-listing-pro/assets to your readme.txt
local-listing-pro/local_listing_pro.php 77% from 13 tests
The primary PHP file in "Local Listing Pro" version 1.0.11 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("local-listing-pro.php" instead of "local_listing_pro.php")
Code Analysis 5% from 3 tests
File types 0% from 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
Please fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/local-listing-pro/inc/Stripe/data/ca-certificates.crt
- ☣ wp-content/plugins/local-listing-pro/inc/Stripe1/lib/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 194 | 3,688 | 2,993 | 16,451 |
CSS | 5 | 120 | 69 | 9,713 |
JavaScript | 8 | 252 | 19 | 1,209 |
SVG | 2 | 0 | 0 | 733 |
Markdown | 2 | 173 | 0 | 266 |
JSON | 2 | 0 | 0 | 65 |
YAML | 3 | 6 | 0 | 32 |
XML | 2 | 0 | 0 | 30 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 153 | |
▷ Abstract classes | 10 | 6.54% |
▷ Concrete classes | 143 | 93.46% |
▷ Final classes | 0 | 0.00% |
Methods | 712 | |
▷ Static methods | 194 | 27.25% |
▷ Public methods | 651 | 91.43% |
▷ Protected methods | 37 | 5.20% |
▷ Private methods | 24 | 3.37% |
Functions | 10 | |
▷ Named functions | 5 | 50.00% |
▷ Anonymous functions | 5 | 50.00% |
Constants | 12 | |
▷ Global constants | 6 | 50.00% |
▷ Class constants | 6 | 50.00% |
▷ Public constants | 6 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
57 PNG files occupy 0.49MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/Stripe1/test/data/test.png | 0.09KB | 0.09KB | 0.00% |
images/directory_logo/N49.png | 10.99KB | 4.27KB | ▼ 61.13% |
images/directory_logo/YaSabe.png | 11.39KB | 3.12KB | ▼ 72.62% |
images/invalid-icon.png | 7.98KB | 3.72KB | ▼ 53.38% |
images/directory_logo/Judybook.png | 9.34KB | 3.37KB | ▼ 63.93% |