Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.42ms] Passed 4 tests
Server-side resources used by Paysley
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.65 ▼0.17 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.11 ▼4.19 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.53 ▼7.87 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.89 ▼17.46 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.18 ▲0.66 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
paysley_plugin_version |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Paysley
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.71 ▼0.59 | 1.82 ▲0.02 | 45.36 ▼0.53 |
Dashboard /wp-admin | 2,206 ▲18 | 4.86 ▼0.01 | 106.49 ▼6.39 | 41.01 ▼4.22 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.01 | 37.99 ▼4.56 | 33.18 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 23.47 ▲5.73 | 650.20 ▼41.77 | 59.54 ▼4.48 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.23 ▲0.03 | 101.10 ▼9.67 | 44.03 ▼2.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- 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 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Unterminated comment starting line 2 in wp-content/plugins/paysley/index.php on line 2
- > 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 errors were detected
Optimizations
Plugin configuration Passed 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
6 plugin tags: paysley, apple pay, payment method, payment gateway, credit card...
paysley/paysley.php Passed 13 tests
The main PHP file in "Paysley" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
31 characters long description:
Receive payments using Paysley.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,623 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 18 | 360 | 360 | 1,227 |
PHP | 4 | 81 | 242 | 396 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 6 | 28.57% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 3 | 14.29% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/py-logo.png | 0.81KB | 0.81KB | 0.24% |