Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼6.92ms] Passed 4 tests
This is a short check of server-side resources used by Payment Gateway for BA via PayPal
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 35.67 ▼8.91 |
Dashboard /wp-admin | 3.57 ▲0.27 | 48.05 ▲0.16 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 42.29 ▼7.18 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 85.60 ▼11.75 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 35.22 ▲1.48 |
Server storage [IO: ▲3.93MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 1,150 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Payment Gateway for BA via PayPal: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.18 ▼1.44 | 1.59 ▼0.29 | 40.42 ▼3.73 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▼0.01 | 97.52 ▼2.77 | 36.42 ▼5.73 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.07 | 34.31 ▼6.35 | 31.82 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.24 ▲5.03 | 672.08 ▲56.87 | 49.56 ▼5.20 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.17 ▼0.03 | 99.57 ▲4.80 | 44.69 ▲5.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
- 502× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/phpunit/tests/_files/NotVoidTestCase.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_Constraint' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/phpunit/src/Framework/Constraint/LessThan.php:17
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/phpunit/tests/_files/FatalTest.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/php-code-coverage/tests/_files/CoverageFunctionParenthesesTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Util_Printer' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/phpunit/src/Util/Log/JUnit.php:18
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_Constraint' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/phpunit/src/Framework/Constraint/Exception.php:14
- > PHP Fatal error
Uncaught Error: Class 'AbstractTest' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/phpunit/tests/_files/ConcreteTest.my.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/php-code-coverage/tests/_files/CoverageNothingTest.php:2
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit_Exception' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/phpunit/src/Runner/Exception.php:14
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit_Framework_MockObject_Builder_Identity' not found in wp-content/plugins/payment-gateway-for-ba-paypal/paypal-sdk/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/Stub.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in payment-gateway-for-ba-paypal/assets to your readme.txt
payment-gateway-for-ba-paypal/payment-gateway-for-ba-paypal.php Passed 13 tests
"Payment Gateway for BA via PayPal" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
57 characters long description:
Integrates PayPal payments into BA Book Everything plugin
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected64,538 lines of code in 1,031 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 838 | 12,005 | 27,994 | 53,787 |
YAML | 50 | 247 | 90 | 3,948 |
Markdown | 42 | 1,111 | 0 | 2,340 |
JSON | 29 | 12 | 0 | 2,210 |
XML | 47 | 97 | 13 | 951 |
Ant | 10 | 91 | 0 | 573 |
SVG | 1 | 0 | 0 | 288 |
XSD | 1 | 0 | 0 | 264 |
CSS | 3 | 26 | 4 | 98 |
reStructuredText | 2 | 23 | 18 | 31 |
make | 1 | 7 | 0 | 28 |
JavaScript | 7 | 5 | 21 | 20 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 259.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 56 | |
Interfaces | 72 | |
Traits | 3 | |
Classes | 857 | |
▷ Abstract classes | 32 | 3.73% |
▷ Concrete classes | 825 | 96.27% |
▷ Final classes | 54 | 6.55% |
Methods | 3,962 | |
▷ Static methods | 666 | 16.81% |
▷ Public methods | 3,392 | 85.61% |
▷ Protected methods | 308 | 7.77% |
▷ Private methods | 262 | 6.61% |
Functions | 214 | |
▷ Named functions | 165 | 77.10% |
▷ Anonymous functions | 49 | 22.90% |
Constants | 127 | |
▷ Global constants | 14 | 11.02% |
▷ Class constants | 113 | 88.98% |
▷ Public constants | 104 | 92.04% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paypal-logo.png | 15.20KB | 4.83KB | ▼ 68.22% |