Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.11MB] [CPU: ▼148.83ms] Passed 4 tests
A check of server-side resources used by WPExperts Square For GiveWP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 29.74 ▲8.23 |
Dashboard /wp-admin | 3.03 ▼0.03 | 35.42 ▼4.69 |
Posts /wp-admin/edit.php | 3.08 ▼0.02 | 34.86 ▼5.13 |
Add New Post /wp-admin/post-new.php | 5.03 ▼0.40 | 74.49 ▼573.98 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 27.46 ▼11.53 |
Server storage [IO: ▲5.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 1,780 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WPExperts Square For GiveWP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,711 ▲115 | 16.02 ▲0.49 | 8.06 ▼1.35 | 46.94 ▼0.21 |
Dashboard /wp-admin | 3,005 ▲71 | 6.16 ▲0.21 | 141.00 ▲6.85 | 114.00 ▲0.77 |
Posts /wp-admin/edit.php | 2,768 ▲29 | 2.82 ▲0.14 | 68.32 ▲2.88 | 96.84 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,528 ▼144 | 18.57 ▼0.37 | 361.72 ▼14.79 | 128.48 ▲21.17 |
Media Library /wp-admin/upload.php | 1,839 ▲29 | 5.05 ▲0.04 | 148.25 ▲1.66 | 121.68 ▲2.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 595× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/V1ListCategoriesRequestTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/SourceApplicationTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/AdditionalRecipientReceivableTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/OrderFulfillmentTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/ListMerchantsResponseTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/CatalogCustomAttributeDefinitionSelectionConfigTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/V1DeleteDiscountRequestTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/CustomerSortTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/SearchOrdersCustomerFilterTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpexperts-square-for-give/lib/square-sdk/test/Model/CreateCustomerResponseTest.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in wpexperts-square-for-give/assets to your readme.txt
wpexperts-square-for-give/givewp-square.php 77% from 13 tests
The main PHP script in "WPExperts Square For GiveWP" version 1.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpexperts-square-for-give.php" instead of "givewp-square.php")
- 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
- Description: Please keep the plugin description shorter than 140 characters (currently 340 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin91,532 lines of code in 1,776 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,182 | 16,821 | 75,847 | 76,556 |
Markdown | 584 | 6,455 | 0 | 14,334 |
JavaScript | 7 | 320 | 77 | 529 |
CSS | 1 | 17 | 3 | 59 |
JSON | 1 | 0 | 0 | 36 |
YAML | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 473.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1,180 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1,180 | 100.00% |
▷ Final classes | 1 | 0.08% |
Methods | 9,193 | |
▷ Static methods | 1,187 | 12.91% |
▷ Public methods | 9,184 | 99.90% |
▷ Protected methods | 8 | 0.09% |
▷ Private methods | 1 | 0.01% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 12 | |
▷ Global constants | 5 | 41.67% |
▷ Class constants | 7 | 58.33% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin