Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.84MB] [CPU: ▼28.40ms] Passed 4 tests
Analyzing server-side resources used by Ryan's Payment Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.01 ▼1.44 |
Dashboard /wp-admin | 3.10 ▼0.21 | 26.41 ▼18.96 |
Posts /wp-admin/edit.php | 3.10 ▼0.26 | 26.97 ▼20.22 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.79 | 26.25 ▼63.55 |
Media Library /wp-admin/upload.php | 3.10 ▼0.13 | 22.55 ▼10.87 |
Ryan's Payment Button /wp-admin/options-general.php?page=ryans_payment_button | 3.10 | 24.69 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
ryans_payment_button_options |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Ryan's Payment Button
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲162 | 13.95 ▼0.43 | 5.34 ▲3.58 | 42.00 ▼0.95 |
Dashboard /wp-admin | 2,213 ▲28 | 5.85 ▲0.06 | 96.59 ▼16.13 | 39.39 ▼6.64 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.04 ▲0.03 | 39.35 ▲2.31 | 36.00 ▲3.32 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 23.06 ▲0.07 | 665.82 ▲2.01 | 48.93 ▼3.31 |
Media Library /wp-admin/upload.php | 1,398 ▲16 | 4.23 ▲0.07 | 97.29 ▲0.53 | 44.42 ▲2.17 |
Ryan's Payment Button /wp-admin/options-general.php?page=ryans_payment_button | 1,269 | 1.80 | 29.13 | 28.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/ryans-payment-button/ryans-payment-button.php+209
A non-numeric value encountered
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=ryans_payment_button
- > Warning in wp-content/plugins/ryans-payment-button/ryans-payment-button.php+209
A non-numeric value encountered
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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ryans-payment-button/ryans-payment-button.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: paypal, buttons
ryans-payment-button/ryans-payment-button.php Passed 13 tests
The main file in "Ryan's Payment Button" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
123 characters long description:
Add a paypal button to your wordpress site with an a optional payment amount textbox. Choose from multiple paypal buttons.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected409 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 92 | 15 | 388 |
JavaScript | 2 | 9 | 0 | 17 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 2 | 11.11% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.14MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/screenshot-2.png | 28.58KB | 0.00KB | ▼ 100.00% |
(invalid) assets/screenshot-3.png | 76.01KB | 0.00KB | ▼ 100.00% |
assets/icon-256x256.png | 9.33KB | 4.22KB | ▼ 54.72% |
(invalid) assets/screenshot-1.png | 29.40KB | 0.00KB | ▼ 100.00% |