Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.99ms] Passed 4 tests
Analyzing server-side resources used by Slim CD payment gateway
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.15 ▼3.20 |
Dashboard /wp-admin | 3.31 ▲0.01 | 66.32 ▲12.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.80 ▲1.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.26 ▼2.93 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.67 ▲0.35 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Slim CD payment gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.48 | 1.66 ▼0.10 | 37.41 ▼14.92 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼1.03 | 104.04 ▼10.92 | 37.64 ▼6.26 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 36.07 ▲0.54 | 32.50 ▼2.83 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.50 ▼0.72 | 621.67 ▲34.36 | 59.59 ▲2.05 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.04 | 94.55 ▼7.23 | 39.99 ▼6.18 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/slimcd-payment-gateway/includes/class-slimcd-payment-gateway.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
slimcd-payment-gateway/slimcd-payment-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Slim CD payment gateway" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 175 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("slimcd-payment-gateway.php" instead of "slimcd-payment-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin656 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 113 | 68 | 574 |
JavaScript | 1 | 4 | 0 | 56 |
CSS | 1 | 5 | 0 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 4.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 9 | |
▷ Named functions | 9 | 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 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
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon2.png | 18.33KB | 6.01KB | ▼ 67.20% |
assets/images/powered-by-SlimCd.png | 10.35KB | 4.72KB | ▼ 54.39% |
assets/images/icon1.png | 31.10KB | 6.02KB | ▼ 80.64% |
assets/images/icon.png | 10.35KB | 4.72KB | ▼ 54.39% |