Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.83MB] [CPU: ▼53.86ms] Passed 4 tests
Analyzing server-side resources used by Vandar Payment Gateway for Paid Memberships Pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 5.41 ▼34.98 |
Dashboard /wp-admin | 2.18 ▼1.16 | 6.35 ▼54.65 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 7.21 ▼39.76 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.70 | 6.98 ▼86.04 |
Media Library /wp-admin/upload.php | 2.18 ▼1.04 | 5.82 ▼27.58 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Vandar Payment Gateway for Paid Memberships Pro
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.34 ▼0.01 | 1.63 ▼0.09 | 38.40 ▼1.34 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.04 | 89.97 ▼0.85 | 42.75 ▲2.28 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.09 | 40.41 ▲4.99 | 37.45 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.09 ▼0.11 | 681.03 ▲18.02 | 53.71 ▼1.41 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.21 ▲0.04 | 93.73 ▼9.41 | 42.19 ▼4.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'PMProGateway_Vandar' not found
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: gateway, vandar, memberships, paid memberships pro, restrict content
vandar-paid-memberships-pro/vandar-paid-memberships-pro.php Passed 13 tests
The primary PHP file in "Vandar Payment Gateway for Paid Memberships Pro" version 2.1.2 is used by WordPress to initiate all plugin functionality
47 characters long description:
Vandar payment gateway for Paid Memberships Pro
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin407 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 99 | 89 | 367 |
Markdown | 1 | 8 | 0 | 23 |
SVG | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 12 | |
▷ Static methods | 11 | 91.67% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 3.06KB | 1.43KB | ▼ 53.35% |
assets/icon-256x256.png | 6.66KB | 2.80KB | ▼ 58.00% |
assets/banner-772x250.png | 31.88KB | 9.43KB | ▼ 70.41% |
assets/banner-1544x500.png | 98.57KB | 24.42KB | ▼ 75.23% |