Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.57MB] [CPU: ▲11.81ms] Passed 4 tests
This is a short check of server-side resources used by Listar - Directory Listing & Classifieds WordPress Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.78 ▲1.31 | 50.28 ▲9.22 |
Dashboard /wp-admin | 5.00 ▲1.69 | 71.07 ▲19.02 |
Posts /wp-admin/edit.php | 5.05 ▲1.69 | 71.57 ▲24.44 |
Add New Post /wp-admin/post-new.php | 8.27 ▲2.38 | 105.87 ▼2.24 |
Media Library /wp-admin/upload.php | 4.84 ▲1.60 | 57.09 ▲21.23 |
Add New /wp-admin/post-new.php?post_type=listar_team | 4.96 | 65.68 |
All Members /wp-admin/edit.php?post_type=listar_team | 4.93 | 56.47 |
Categories /wp-admin/edit-tags.php?taxonomy=listar_category&post_type=listar | 4.87 | 49.00 |
Locations /wp-admin/edit-tags.php?taxonomy=listar_location&post_type=listar | 4.87 | 56.03 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=listar | 4.86 | 57.21 |
Add New /wp-admin/post-new.php?post_type=listar | 5.11 | 68.49 |
All Listings /wp-admin/edit.php?post_type=listar | 4.93 | 67.35 |
Features /wp-admin/edit-tags.php?taxonomy=listar_feature&post_type=listar | 4.87 | 50.52 |
Settings /wp-admin/edit.php?post_type=listar&page=settings | 5.03 | 55.48 |
Add New /wp-admin/post-new.php?post_type=listar_booking | 5.25 | 65.55 |
Server storage [IO: ▲18.47MB] [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: 2,193 new files
Database: no new tables, 19 new options
New WordPress options |
---|
widget_listar_location |
widget_listar_price_range |
widget_recent-posts |
widget_listar_data |
widget_listar_post |
widget_recent-comments |
widget_listar_feature_menu |
widget_theysaidso_widget |
widget_listar_location_menu |
widget_listar_rating_range |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Listar - Directory Listing & Classifieds WordPress Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,112 ▲351 | 15.17 ▲0.79 | 1.94 ▲0.41 | 38.63 ▼2.69 |
Dashboard /wp-admin | 2,475 ▲298 | 6.91 ▲1.39 | 134.45 ▲43.97 | 43.15 ▼1.52 |
Posts /wp-admin/edit.php | 2,418 ▲315 | 3.71 ▲1.69 | 62.91 ▲24.39 | 34.80 ▼0.73 |
Add New Post /wp-admin/post-new.php | 1,654 ▲126 | 22.40 ▼0.81 | 671.25 ▲53.53 | 37.84 ▼20.14 |
Media Library /wp-admin/upload.php | 1,559 ▲156 | 4.82 ▲0.63 | 95.43 ▼12.33 | 51.41 ▲8.84 |
Add New /wp-admin/post-new.php?post_type=listar_team | 1,980 | 4.36 | 84.47 | 34.53 |
All Members /wp-admin/edit.php?post_type=listar_team | 1,379 | 4.02 | 59.01 | 28.40 |
Categories /wp-admin/edit-tags.php?taxonomy=listar_category&post_type=listar | 4,625 | 5.81 | 123.15 | 39.72 |
Locations /wp-admin/edit-tags.php?taxonomy=listar_location&post_type=listar | 1,627 | 4.04 | 48.74 | 31.21 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=listar | 1,641 | 4.04 | 49.05 | 30.97 |
Add New /wp-admin/post-new.php?post_type=listar | 10,274 | 6.07 | 190.94 | 45.24 |
All Listings /wp-admin/edit.php?post_type=listar | 1,457 | 3.65 | 60.79 | 37.52 |
Features /wp-admin/edit-tags.php?taxonomy=listar_feature&post_type=listar | 4,625 | 5.76 | 136.14 | 36.57 |
Settings /wp-admin/edit.php?post_type=listar&page=settings | 1,483 | 3.96 | 50.94 | 68.89 |
Add New /wp-admin/post-new.php?post_type=listar_booking | 2,681 | 4.45 | 75.36 | 36.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 19 options in the database
- widget_listar_post
- theysaidso_admin_options
- widget_listar_location
- widget_listar_feature_menu
- widget_listar_search_form
- can_compress_scripts
- widget_listar_category_menu
- widget_recent-comments
- widget_listar_post_category
- db_upgraded
- ...
Smoke tests 25% 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 errors were triggered by the plugin
- > GET request to /wp-admin/edit-tags.php?taxonomy=listar_category&post_type=listar
- > Notice in wp-content/plugins/listar-directory-listing/src/views/metadata/category.php+4
Trying to get property 'color' of non-object
- > GET request to /wp-admin/edit-tags.php?taxonomy=listar_category&post_type=listar
- > Notice in wp-content/plugins/listar-directory-listing/src/views/metadata/category.php+9
Trying to get property 'icon' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=listar
- > Notice in wp-content/plugins/listar-directory-listing/src/Models/Place_Model.php+240
Undefined index: gallery
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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/listar-directory-listing/vendor/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/listar-directory-listing/vendor/stripe/stripe-php/build.php
- 343× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/listar-directory-listing/vendor/stripe/stripe-php/lib/Service/SetupIntentService.php:7
- > PHP Fatal error
Uncaught Error: Class 'BraintreeHttp\\HttpRequest' not found in wp-content/plugins/listar-directory-listing/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Orders/OrdersPatchRequest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/listar-directory-listing/vendor/stripe/stripe-php/lib/Service/TaxCodeService.php:7
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/listar-directory-listing/vendor/stripe/stripe-php/lib/AccountLink.php:21
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/listar-directory-listing/vendor/stripe/stripe-php/lib/Issuing/Card.php:33
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/listar-directory-listing/vendor/paypal/paypal-payouts-sdk/tests/Payouts/PayoutsItemCancelTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\StripeObject' not found in wp-content/plugins/listar-directory-listing/vendor/stripe/stripe-php/lib/OrderItem.php:16
- > PHP Fatal error
Uncaught Error: Interface 'PayPalHttp\\Environment' not found in wp-content/plugins/listar-directory-listing/vendor/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/PayPalEnvironment.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\StripeClientInterface' not found in wp-content/plugins/listar-directory-listing/vendor/stripe/stripe-php/lib/BaseStripeClient.php:5
- > PHP Fatal error
Uncaught Error: Class 'PaypalPayoutsSDK\\Core\\PayPalEnvironment' not found in wp-content/plugins/listar-directory-listing/vendor/paypal/paypal-payouts-sdk/lib/PaypalPayoutsSDK/Core/ProductionEnvironment.php:5
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in listar-directory-listing/assets to your readme.txt
listar-directory-listing/listar.php 85% from 13 tests
"Listar - Directory Listing & Classifieds WordPress Plugin" version 1.0.25's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("listar-directory-listing.php" instead of "listar.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/listar-directory-listing/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 9 | 0 | 0 | 60,940 |
YAML | 9 | 0 | 0 | 25,274 |
PHP | 437 | 38,632 | 69,420 | 24,841 |
SVG | 1,604 | 0 | 24 | 15,855 |
CSS | 17 | 3,728 | 118 | 9,460 |
JavaScript | 18 | 1,015 | 454 | 9,314 |
Sass | 18 | 507 | 34 | 4,760 |
LESS | 18 | 504 | 55 | 4,718 |
Markdown | 11 | 809 | 0 | 1,485 |
PO File | 1 | 85 | 94 | 200 |
XML | 4 | 5 | 0 | 55 |
make | 1 | 9 | 0 | 27 |
Ruby | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 50 | |
Interfaces | 16 | |
Traits | 7 | |
Classes | 384 | |
▷ Abstract classes | 15 | 3.91% |
▷ Concrete classes | 369 | 96.09% |
▷ Final classes | 0 | 0.00% |
Methods | 1,506 | |
▷ Static methods | 339 | 22.51% |
▷ Public methods | 1,374 | 91.24% |
▷ Protected methods | 44 | 2.92% |
▷ Private methods | 88 | 5.84% |
Functions | 58 | |
▷ Named functions | 24 | 41.38% |
▷ Anonymous functions | 34 | 58.62% |
Constants | 766 | |
▷ Global constants | 6 | 0.78% |
▷ Class constants | 760 | 99.22% |
▷ Public constants | 760 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default-featured-image.png | 6.39KB | 2.16KB | ▼ 66.22% |