Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼11.59ms] Passed 4 tests
This is a short check of server-side resources used by Paystack MemberPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.00 | 47.78 ▲2.77 |
Dashboard /wp-admin | 3.57 ▼0.06 | 49.52 ▼23.68 |
Posts /wp-admin/edit.php | 3.68 ▲0.00 | 50.01 ▼0.86 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.00 | 84.80 ▼20.70 |
Media Library /wp-admin/upload.php | 3.49 ▲0.00 | 39.13 ▼1.13 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Paystack MemberPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.25 ▼0.50 | 1.91 ▼0.00 | 44.37 ▲0.52 |
Dashboard /wp-admin | 2,192 ▲18 | 5.57 ▼0.02 | 81.72 ▼9.09 | 38.19 ▼2.47 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.07 | 34.48 ▼4.31 | 35.98 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,545 ▲1 | 23.38 ▲0.31 | 677.47 ▼48.84 | 62.35 ▲7.10 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.23 ▲0.10 | 106.45 ▼1.35 | 45.40 ▼0.86 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- 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 | 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
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/paystack-memberpress/MpPaystack.php
- > /wp-content/plugins/paystack-memberpress/MeprPaystackGateway.php
- > /wp-content/plugins/paystack-memberpress/MeprPaystackAPI.php
- > /wp-content/plugins/paystack-memberpress/main.php
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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Requires php: The plugin version is formatted incorrectly
- Screenshots: A description for screenshot #1 is missing in paystack-memberpress/assets to your readme.txt
paystack-memberpress/main.php 92% from 13 tests
The main PHP file in "Paystack MemberPress" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paystack-memberpress.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,247 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 299 | 286 | 1,155 |
Markdown | 1 | 36 | 0 | 51 |
JavaScript | 1 | 9 | 29 | 22 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 48.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 2 | 3.51% |
▷ Public methods | 52 | 91.23% |
▷ Protected methods | 5 | 8.77% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
9 PNG files occupy 0.60MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress.org/banner-1544x500.png | 86.48KB | 33.12KB | ▼ 61.70% |
.wordpress.org/banner-772x250-rtl.png | 33.83KB | 14.86KB | ▼ 56.08% |
.wordpress.org/icon-256x256.png | 11.66KB | 3.59KB | ▼ 69.22% |
images/paystack.png | 2.71KB | 2.74KB | 0.00% |
.wordpress.org/screenshot-1.png | 344.50KB | 73.96KB | ▼ 78.53% |