Benchmarks
Plugin footprint 58% 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
- > Deprecated in wp-content/plugins/grs-lnd-for-wp/classes/qrdecoder/lib/qrcode/decoder/DecodedBitStreamParser.php+286
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▲0.50MB] [CPU: ▼0.01ms] Passed 4 tests
A check of server-side resources used by GRS LND For WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.53 | 37.78 ▼1.97 |
Dashboard /wp-admin | 3.83 ▲0.52 | 49.91 ▲1.31 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 50.13 ▼0.99 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 90.64 ▲1.62 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 37.00 ▲3.59 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 519 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
GRS LND For WP: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲189 | 13.65 ▼0.93 | 5.62 ▲3.85 | 40.42 ▼4.58 |
Dashboard /wp-admin | 2,215 ▲27 | 5.85 ▲0.81 | 105.48 ▲6.57 | 91.60 ▲54.78 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.03 ▲0.03 | 39.14 ▲0.90 | 34.30 ▲1.94 |
Add New Post /wp-admin/post-new.php | 1,388 ▼140 | 16.61 ▼1.79 | 661.58 ▲16.00 | 51.77 ▼10.50 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.11 ▼0.10 | 107.09 ▲2.54 | 84.41 ▲38.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/grs-lnd-for-wp/public/partials/lnd-for-wp-request-invoice-ajax.php
- > /wp-content/plugins/grs-lnd-for-wp/classes/phpqrcode/index.php
- 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/grs-lnd-for-wp/admin/partials/lnd-for-wp-admin-unreachable.php:14
- > PHP Fatal error
Uncaught Error: Class 'Zxing\\LuminanceSource' not found in wp-content/plugins/grs-lnd-for-wp/classes/qrdecoder/lib/IMagickLuminanceSource.php:13
- > PHP Fatal error
Uncaught Error: Class 'Zxing\\ReaderException' not found in wp-content/plugins/grs-lnd-for-wp/classes/qrdecoder/lib/FormatException.php:27
- > PHP Fatal error
Uncaught Error: Class 'Zxing\\LuminanceSource' not found in wp-content/plugins/grs-lnd-for-wp/classes/qrdecoder/lib/PlanarYUVLuminanceSource.php:30
- > PHP Fatal error
Uncaught Error: Class 'Zxing\\Common\\Reedsolomon\\GenericGFPoly' not found in wp-content/plugins/grs-lnd-for-wp/classes/qrdecoder/lib/common/reedsolomon/GenericGF.php:94
- > PHP Fatal error
Uncaught Error: Class 'Zxing\\ResultPoint' not found in wp-content/plugins/grs-lnd-for-wp/classes/qrdecoder/lib/qrcode/detector/AlignmentPattern.php:28
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/grs-lnd-for-wp/admin/partials/lnd-for-wp-admin-peers.php on line 185
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/grs-lnd-for-wp/admin/partials/lnd-for-wp-admin-wallet.php:14
- > PHP Fatal error
Uncaught Error: Class 'Zxing\\ResultPoint' not found in wp-content/plugins/grs-lnd-for-wp/classes/qrdecoder/lib/qrcode/detector/FinderPattern.php:29
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/grs-lnd-for-wp/admin/partials/lnd-for-wp-admin-display.php:14
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Responsive layout adapts for desktop, tablet and mobile.), #2 (Manage Channels), #3 (View Transaction History), #4 (Mobile Wallet)
grs-lnd-for-wp/lnd-for-wp.php 92% from 13 tests
The main PHP file in "GRS LND For WP" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("grs-lnd-for-wp.php" instead of "lnd-for-wp.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
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/grs-lnd-for-wp/classes/phpqrcode/tools/merge.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 3,266 | 5,463 | 13,490 |
CSS | 2 | 87 | 9 | 598 |
JavaScript | 2 | 79 | 39 | 205 |
Markdown | 1 | 11 | 0 | 27 |
Bourne Shell | 1 | 0 | 0 | 2 |
DOS Batch | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 22.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 99 | |
▷ Abstract classes | 5 | 5.05% |
▷ Concrete classes | 94 | 94.95% |
▷ Final classes | 41 | 43.62% |
Methods | 817 | |
▷ Static methods | 179 | 21.91% |
▷ Public methods | 647 | 79.19% |
▷ Protected methods | 108 | 13.22% |
▷ Private methods | 62 | 7.59% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 98 | |
▷ Global constants | 98 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/phpqrcode/cache/frame_31.png | 0.25KB | 0.24KB | ▼ 6.54% |
classes/phpqrcode/cache/frame_24.png | 0.24KB | 0.23KB | ▼ 4.55% |
classes/phpqrcode/cache/frame_39.png | 0.26KB | 0.23KB | ▼ 9.85% |
classes/phpqrcode/cache/frame_5.png | 0.15KB | 0.14KB | ▼ 1.33% |
classes/phpqrcode/cache/frame_1.png | 0.12KB | 0.12KB | ▼ 1.59% |