Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.97ms] Passed 4 tests
Server-side resources used by SwipeGo for GiveWP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.65 ▼38.06 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.87 ▼38.42 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.36 ▼36.01 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.64 ▼87.38 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.28 ▼27.12 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 207 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
SwipeGo for GiveWP: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲123 | 13.29 ▼1.09 | 1.92 ▼0.42 | 42.11 ▼3.62 |
Dashboard /wp-admin | 2,242 ▲57 | 5.82 ▲0.01 | 99.23 ▼2.61 | 65.57 ▲23.95 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 1.99 ▲0.00 | 34.91 ▼2.73 | 32.57 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 23.22 ▼0.04 | 760.87 ▲72.27 | 60.14 ▼1.43 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.14 ▼0.14 | 108.89 ▲2.91 | 81.93 ▲38.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 52× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/swipe-for-givewp/libraries/swipego/vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/swipe-for-givewp/libraries/swipego/vendor/guzzlehttp/psr7/src/FnStream.php:15
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/swipe-for-givewp/libraries/swipego/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:11
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\BodySummarizerInterface' not found in wp-content/plugins/swipe-for-givewp/libraries/swipego/vendor/guzzlehttp/guzzle/src/BodySummarizer.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/swipe-for-givewp/libraries/swipego/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/swipe-for-givewp/libraries/swipego/admin/views/dashboard.php:8
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/swipe-for-givewp/libraries/swipego/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/swipe-for-givewp/libraries/swipego/vendor/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/swipe-for-givewp/libraries/swipego/vendor/guzzlehttp/promises/src/AggregateException.php:8
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/swipe-for-givewp/libraries/swipego/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in swipe-for-givewp/assets to your readme.txt
swipe-for-givewp/swipego-gwp.php 85% from 13 tests
The main file in "SwipeGo for GiveWP" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("swipe-for-givewp.php" instead of "swipego-gwp.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.2" instead of "4.6")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin17,402 lines of code in 182 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 136 | 2,432 | 5,820 | 10,313 |
Markdown | 17 | 1,228 | 0 | 3,601 |
JavaScript | 5 | 598 | 163 | 2,303 |
JSON | 13 | 0 | 0 | 1,051 |
CSS | 4 | 0 | 0 | 73 |
SVG | 5 | 0 | 1 | 45 |
make | 1 | 4 | 0 | 9 |
YAML | 1 | 0 | 0 | 7 |
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.45 |
Average class complexity | 13.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 88 | |
▷ Abstract classes | 1 | 1.14% |
▷ Concrete classes | 87 | 98.86% |
▷ Final classes | 34 | 39.08% |
Methods | 829 | |
▷ Static methods | 143 | 17.25% |
▷ Public methods | 695 | 83.84% |
▷ Protected methods | 11 | 1.33% |
▷ Private methods | 123 | 14.84% |
Functions | 136 | |
▷ Named functions | 45 | 33.09% |
▷ Anonymous functions | 91 | 66.91% |
Constants | 77 | |
▷ Global constants | 9 | 11.69% |
▷ Class constants | 68 | 88.31% |
▷ Public constants | 57 | 83.82% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin