Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.13ms] Passed 4 tests
An overview of server-side resources used by PayL8r Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.28 ▼8.91 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.59 ▼7.33 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.77 ▲4.72 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.07 ▲0.47 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.96 ▼0.76 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for PayL8r Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.55 ▼0.63 | 1.59 ▼0.33 | 42.22 ▼0.75 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.97 | 106.61 ▼8.63 | 42.78 ▼6.09 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.00 | 41.63 ▲4.87 | 35.71 ▲3.89 |
Add New Post /wp-admin/post-new.php | 1,537 ▼1 | 23.23 ▼0.26 | 601.21 ▼99.80 | 58.46 ▼5.44 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.19 ▲0.00 | 99.62 ▼5.12 | 44.76 ▲1.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: comments, spam
payl8r-finance-gateway-for-woocommerce/woocommerce-gateway-payl8r.php 92% from 13 tests
The entry point to "PayL8r Gateway for WooCommerce" version 1.5.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("payl8r-finance-gateway-for-woocommerce.php" instead of "woocommerce-gateway-payl8r.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected677 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 162 | 304 | 603 |
SVG | 1 | 0 | 1 | 39 |
Markdown | 1 | 15 | 0 | 35 |
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.27 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 3 | 7.50% |
▷ Public methods | 34 | 85.00% |
▷ Protected methods | 4 | 10.00% |
▷ Private methods | 2 | 5.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/payl8r@2x.png | 15.11KB | 6.75KB | ▼ 55.31% |
assets/images/Payl8rLogoButton.png | 17.86KB | 6.96KB | ▼ 61.06% |