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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.22ms] Passed 4 tests
This is a short check of server-side resources used by Easy Paypal Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 40.91 ▼6.46 |
Dashboard /wp-admin | 3.41 ▲0.10 | 53.52 ▲0.62 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 52.15 ▲4.15 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 89.55 ▼11.20 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 42.93 ▲6.77 |
Easy PayPal Buttons Setting /wp-admin/options-general.php?page=easypaypalbuttonAdminPage | 3.30 | 34.87 |
Server storage [IO: ▲3.70MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 148 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Paypal Buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 13.28 ▼1.07 | 1.75 ▼0.14 | 38.54 ▼2.47 |
Dashboard /wp-admin | 2,227 ▲53 | 5.84 ▲0.27 | 96.53 ▼1.98 | 42.54 ▲1.74 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.27 ▲0.24 | 43.89 ▲4.58 | 36.88 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 23.17 ▲0.05 | 680.90 ▲29.17 | 39.24 ▼12.28 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.32 ▲0.12 | 115.25 ▲9.44 | 49.05 ▲2.58 |
Easy PayPal Buttons Setting /wp-admin/options-general.php?page=easypaypalbuttonAdminPage | 1,878 | 1.90 | 29.14 | 121.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-paypal-buttons/admin/admin.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: paypal donate button, paypal buy button, paypal subscribe button
easy-paypal-buttons/index.php 92% from 13 tests
This is the main PHP file of "Easy Paypal Buttons" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-paypal-buttons.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected9,805 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 34 | 25 | 2,802 |
SVG | 1 | 0 | 0 | 2,671 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 2 | 90 | 28 | 752 |
JavaScript | 2 | 39 | 22 | 54 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
65 PNG files occupy 1.06MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/imgs/subs/s15.png | 6.35KB | 3.01KB | ▼ 52.57% |
admin/imgs/subs/s3.PNG | 3.35KB | 2.37KB | ▼ 29.34% |
admin/imgs/d19.png | 5.52KB | 2.78KB | ▼ 49.60% |
admin/imgs/buy/b31.png | 3.67KB | 2.30KB | ▼ 37.28% |
admin/imgs/buy/b25.png | 4.75KB | 2.42KB | ▼ 49.10% |