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.01MB] [CPU: ▼1.93ms] Passed 4 tests
Server-side resources used by Razorpay for Ultimate Membership Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.56 ▲0.91 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.10 ▼4.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.64 ▲1.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 97.48 ▼1.58 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.40 ▼2.14 |
Server storage [IO: ▲6.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,585 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Razorpay for Ultimate Membership Pro
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 13.22 ▼1.01 | 1.80 ▼0.18 | 41.25 ▼2.48 |
Dashboard /wp-admin | 2,207 ▲19 | 5.76 ▼0.14 | 100.69 ▼3.25 | 43.16 ▲0.61 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.00 ▼0.04 | 41.91 ▲4.01 | 34.73 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.19 ▲0.06 | 621.69 ▼64.01 | 61.03 ▲2.20 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.19 ▼0.03 | 97.97 ▼4.43 | 44.37 ▼1.63 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/vendor/nikic/php-parser/grammar/rebuildParsers.php
- 874× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/libs/Requests-2.0.0/src/Exception/Http/Status403.php:33
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/vendor/rmccue/requests/src/Exception/Http/Status403.php:33
- > PHP Fatal error
Uncaught Error: Interface 'phpDocumentor\\Reflection\\Type' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/vendor/phpdocumentor/type-resolver/src/Types/Object_.php:61
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\AssignOp' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Pow.php:13
- > PHP Fatal error
Uncaught Error: Class 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\File' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/vendor/phpunit/php-code-coverage/src/Report/Xml/Report.php:37
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr\\Cast' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast/Double.php:13
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/libs/Requests-2.0.0/src/Exception/Http/Status412.php:33
- > PHP Fatal error
Uncaught Error: Interface 'PHPUnit\\Runner\\TestHook' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/vendor/phpunit/phpunit/src/Runner/Hook/AfterSkippedTestHook.php:41
- > PHP Fatal error
Uncaught Error: Class 'PhpParser\ode\\Expr' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Ternary.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\CodeCoverageException' not found in wp-content/plugins/ultimate-membership-pro-razorpay/classes/libs/razorpay/vendor/phpunit/phpunit/src/Framework/Exception/InvalidCoversTargetException.php:29
- > 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 Passed 29 tests
readme.txt Passed 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
6 plugin tags: transaction, user, ultimate membership pro, free, member...
ultimate-membership-pro-razorpay/ultimate-membership-pro-razorpay.php Passed 13 tests
The entry point to "Razorpay for Ultimate Membership Pro" version 1.3 is a PHP file that has certain tags in its header comment area
88 characters long description:
Users may become members by purchasing one time memberships through this payment method.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin97,964 lines of code in 1,416 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,262 | 18,671 | 39,135 | 84,144 |
Markdown | 68 | 2,703 | 0 | 5,615 |
JSON | 42 | 12 | 0 | 4,123 |
yacc | 3 | 328 | 12 | 2,015 |
XSD | 3 | 0 | 0 | 964 |
CSS | 10 | 124 | 29 | 539 |
YAML | 4 | 51 | 1 | 291 |
XML | 12 | 1 | 0 | 161 |
JavaScript | 7 | 8 | 15 | 67 |
reStructuredText | 2 | 23 | 18 | 31 |
SVG | 3 | 0 | 0 | 14 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 145)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 367.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 145.00 |
Code structure | ||
---|---|---|
Namespaces | 138 | |
Interfaces | 109 | |
Traits | 5 | |
Classes | 1,175 | |
▷ Abstract classes | 49 | 4.17% |
▷ Concrete classes | 1,126 | 95.83% |
▷ Final classes | 602 | 53.46% |
Methods | 6,115 | |
▷ Static methods | 1,052 | 17.20% |
▷ Public methods | 4,866 | 79.57% |
▷ Protected methods | 606 | 9.91% |
▷ Private methods | 643 | 10.52% |
Functions | 1,495 | |
▷ Named functions | 238 | 15.92% |
▷ Anonymous functions | 1,257 | 84.08% |
Constants | 656 | |
▷ Global constants | 18 | 2.74% |
▷ Class constants | 638 | 97.26% |
▷ Public constants | 583 | 91.38% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up 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 |
assets/images/razorpay.png | 12.83KB | 4.18KB | ▼ 67.37% |