Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.54MB] [CPU: ▼3.39ms] 75% from 4 tests
Server-side resources used by SpatialMatch IDX
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 711.27ms on /wp-admin/admin.php?page=hji-spatialmatch-idx)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 40.89 ▲0.07 |
Dashboard /wp-admin | 3.90 ▲0.60 | 47.13 ▲1.23 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 48.49 ▼2.03 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.59 | 83.00 ▼12.83 |
Media Library /wp-admin/upload.php | 3.83 ▲0.59 | 41.40 ▲6.10 |
Leads /wp-admin/admin.php?page=hji-spatialmatch-idx-leads | 4.84 | 1,060.90 |
Settings /wp-admin/admin.php?page=hji-spatialmatch-idx | 4.86 | 711.27 |
Help /wp-admin/admin.php?page=hji-spatialmatch-idx-help | 3.86 | 39.56 |
Server storage [IO: ▲1.98MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 309 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SpatialMatch IDX
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲111 | 14.48 ▲0.19 | 1.81 ▼0.21 | 39.96 ▼4.42 |
Dashboard /wp-admin | 2,263 ▲75 | 5.86 ▲0.98 | 113.48 ▼3.54 | 74.07 ▲27.63 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 2.02 ▼0.02 | 37.17 ▼2.11 | 32.65 ▼7.24 |
Add New Post /wp-admin/post-new.php | 1,570 ▲51 | 23.12 ▼0.33 | 738.54 ▲50.47 | 60.98 ▲6.41 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.22 ▼0.00 | 98.38 ▼1.19 | 50.00 ▲5.38 |
Leads /wp-admin/admin.php?page=hji-spatialmatch-idx-leads | 1,826 | 4.51 | 66.65 | 81.24 |
Settings /wp-admin/admin.php?page=hji-spatialmatch-idx | 1,279 | 3.98 | 51.07 | 83.64 |
Help /wp-admin/admin.php?page=hji-spatialmatch-idx-help | 1,321 | 3.79 | 47.02 | 76.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 129× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SpatialMatchIdx\\admin\\actions\\BaseAction' not found in wp-content/plugins/spatialmatch-free-lifestyle-search/src/admin/actions/pages/licenseRegistrations/TrialLicenseRegistrationShowAction.php:11
- > PHP Fatal error
Uncaught Error: Interface 'SpatialMatchIdx\\core\\actions\\interfaces\\ActionInterface' not found in wp-content/plugins/spatialmatch-free-lifestyle-search/src/admin/actions/tabs/compliance/ComplianceShowAction.php:11
- > PHP Fatal error
Cannot declare class ArithmeticError, because the name is already in use in wp-content/plugins/spatialmatch-free-lifestyle-search/vendor/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/spatialmatch-free-lifestyle-search/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/spatialmatch-free-lifestyle-search/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:12
- > PHP Fatal error
Uncaught Error: Class 'SpatialMatchIdx\\admin\\actions\\BaseAjaxAction' not found in wp-content/plugins/spatialmatch-free-lifestyle-search/src/admin/actions/ajax/DeleteFavoritesAction.php:9
- > PHP Fatal error
Uncaught Error: Class 'SpatialMatchIdx\\admin\\actions\\BaseAction' not found in wp-content/plugins/spatialmatch-free-lifestyle-search/src/admin/actions/tabs/license/LicenseSaveAction.php:9
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/spatialmatch-free-lifestyle-search/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/spatialmatch-free-lifestyle-search/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
- > PHP Fatal error
Uncaught Error: Class 'SpatialMatchIdx\\admin\\actions\\BaseAction' not found in wp-content/plugins/spatialmatch-free-lifestyle-search/src/admin/actions/pages/leads/detail/LeadFormEntreiesShowAction.php:17
- > PHP Fatal error
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 80% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
spatialmatch-free-lifestyle-search/SpatialMatch.php 62% from 13 tests
The main PHP file in "SpatialMatch IDX" ver. 3.0.9 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 233 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("spatialmatch-free-lifestyle-search.php" instead of "SpatialMatch.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.0.0")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("7.4" instead of "7.4.0")
Code Analysis 97% from 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
There were no executable files found in this plugin38,553 lines of code in 290 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 275 | 4,310 | 7,391 | 36,800 |
JSON | 2 | 0 | 0 | 1,539 |
SVG | 2 | 0 | 0 | 166 |
XML | 1 | 0 | 0 | 19 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
JavaScript | 4 | 1 | 7 | 4 |
Bourne Shell | 1 | 2 | 0 | 3 |
CSS | 3 | 0 | 3 | 3 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 11.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 47 | |
Interfaces | 21 | |
Traits | 3 | |
Classes | 190 | |
▷ Abstract classes | 3 | 1.58% |
▷ Concrete classes | 187 | 98.42% |
▷ Final classes | 24 | 12.83% |
Methods | 1,217 | |
▷ Static methods | 216 | 17.75% |
▷ Public methods | 976 | 80.20% |
▷ Protected methods | 32 | 2.63% |
▷ Private methods | 209 | 17.17% |
Functions | 169 | |
▷ Named functions | 76 | 44.97% |
▷ Anonymous functions | 93 | 55.03% |
Constants | 183 | |
▷ Global constants | 45 | 24.59% |
▷ Class constants | 138 | 75.41% |
▷ Public constants | 138 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/admin-menu.png | 0.31KB | 0.22KB | ▼ 28.80% |
assets/img/logo.png | 14.31KB | 5.57KB | ▼ 61.05% |
assets/img/logo-white.png | 4.61KB | 4.69KB | 0.00% |