Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲5.69MB] [CPU: ▲34.37ms] 50% from 4 tests
A check of server-side resources used by Quick Paypal Payments
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 1,614.61ms on /wp-admin/options-general.php?page=quick-paypal-payments)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.69MB on /wp-admin/options-general.php?page=quick-paypal-payments)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.22 ▲5.76 | 79.40 ▲41.69 |
Dashboard /wp-admin | 9.24 ▲5.94 | 80.89 ▲34.71 |
Posts /wp-admin/edit.php | 9.24 ▲5.89 | 77.64 ▲23.48 |
Add New Post /wp-admin/post-new.php | 11.05 ▲5.16 | 130.45 ▲37.58 |
Media Library /wp-admin/upload.php | 9.24 ▲6.01 | 83.51 ▲46.46 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 9.24 | 66.26 |
Paypal Payments /wp-admin/options-general.php?page=quick-paypal-payments | 9.24 | 1,614.61 |
Server storage [IO: ▲3.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 233 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
fs_debug_mode |
widget_theysaidso_widget |
qpp_legacy_free |
widget_recent-posts |
fs_accounts |
widget_qpp_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Quick Paypal Payments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.28 ▼0.34 | 1.68 ▲0.02 | 32.38 ▼7.75 |
Dashboard /wp-admin | 2,273 ▲102 | 5.60 ▲0.06 | 84.56 ▼4.65 | 77.91 ▲37.92 |
Posts /wp-admin/edit.php | 2,142 ▲39 | 2.01 ▲0.05 | 37.32 ▼13.74 | 34.90 ▼9.47 |
Add New Post /wp-admin/post-new.php | 1,680 ▲152 | 21.86 ▼1.26 | 639.66 ▲5.58 | 37.04 ▼18.17 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.22 ▲0.04 | 96.53 ▼2.45 | 43.89 ▼1.05 |
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius | 1,106 | 1.66 | 24.15 | 28.44 |
Paypal Payments /wp-admin/options-general.php?page=quick-paypal-payments | 1,213 | 3.52 | 52.63 | 54.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/quick-paypal-payments/vendor/freemius/wordpress-sdk/includes/class-freemius.php+8515
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 11 options in the database
- can_compress_scripts
- fs_debug_mode
- widget_recent-posts
- widget_qpp_widget
- widget_recent-comments
- fs_active_plugins
- qpp_legacy_free
- db_upgraded
- widget_theysaidso_widget
- fs_accounts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant QUICK_PAYPAL_PAYMENTS_PLUGIN_DIR - assumed 'QUICK_PAYPAL_PAYMENTS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/quick-paypal-payments/control/class-user-template-loader.php on line 28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-paypal-payments/legacy/settings.php:5
- > PHP Fatal error
require_once(): Failed opening required 'QUICK_PAYPAL_PAYMENTS_PLUGIN_DIR/vendor/gamajo/template-loader/class-gamajo-template-loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-paypal-payments/control/class-user-template-loader.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'Quick_Paypal_Payments\\UI\\Admin\\Admin_Pages' not found in wp-content/plugins/quick-paypal-payments/ui/admin/class-admin-settings.php:26
- > PHP Warning
require_once(QUICK_PAYPAL_PAYMENTS_PLUGIN_DIR/vendor/gamajo/template-loader/class-gamajo-template-loader.php): failed to open stream: No such file or directory in wp-content/plugins/quick-paypal-payments/control/class-user-template-loader.php on line 28
- > PHP Fatal error
Uncaught Error: Call to a member function add_filter() on null in wp-content/plugins/quick-paypal-payments/legacy/messages.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-paypal-payments/legacy/quick-paypal-payments.php:17
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (This is the main admin screen.), #2 (An example form.), #3 (The payment record)
quick-paypal-payments/quick-paypal-payments.php Passed 13 tests
The main PHP script in "Quick Paypal Payments" version 5.7.38 is automatically included on every request by WordPress
60 characters long description:
Accept any amount or payment ID before submitting to paypal.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin42,809 lines of code in 166 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 137 | 8,805 | 18,011 | 41,265 |
JavaScript | 8 | 211 | 285 | 917 |
CSS | 18 | 58 | 200 | 568 |
Sass | 2 | 1 | 0 | 43 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 73.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,088.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 1,348 | |
▷ Static methods | 204 | 15.13% |
▷ Public methods | 951 | 70.55% |
▷ Protected methods | 20 | 1.48% |
▷ Private methods | 377 | 27.97% |
Functions | 200 | |
▷ Named functions | 194 | 97.00% |
▷ Anonymous functions | 6 | 3.00% |
Constants | 151 | |
▷ Global constants | 102 | 67.55% |
▷ Class constants | 49 | 32.45% |
▷ Public constants | 49 | 100.00% |
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
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/wordpress-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
vendor/freemius/wordpress-sdk/assets/img/quick-paypal-payments.png | 14.54KB | 5.14KB | ▼ 64.67% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |