Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/zarinpal-paid-memberships-pro/index.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; PMProGateway_Zarinpal has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼54.25ms] Passed 4 tests
This is a short check of server-side resources used by Zarinpal Paid Memberships Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 4.52 ▼37.83 |
Dashboard /wp-admin | 2.18 ▼1.13 | 6.37 ▼45.75 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.80 ▼42.36 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 6.55 ▼91.05 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 7.27 ▼25.57 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Zarinpal Paid Memberships Pro: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.70 ▼0.53 | 1.75 ▲0.03 | 40.74 ▲0.30 |
Dashboard /wp-admin | 2,206 ▲21 | 5.77 ▲0.90 | 94.52 ▼16.49 | 39.17 ▼1.22 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▲0.01 | 34.06 ▼5.35 | 32.82 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,538 ▲4 | 23.50 ▲0.26 | 655.42 ▲7.24 | 51.22 ▼1.82 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▲0.06 | 105.34 ▲6.84 | 46.61 ▲1.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/zarinpal-paid-memberships-pro/index.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; PMProGateway_Zarinpal has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zarinpal-paid-memberships-pro/index.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Requires at least: Invalid plugin version format
zarinpal-paid-memberships-pro/index.php 92% from 13 tests
The entry point to "Zarinpal Paid Memberships Pro" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("zarinpal-paid-memberships-pro.php" instead of "index.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
Success! There were no dangerous files found in this plugin280 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 64 | 62 | 280 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 10 | |
▷ Static methods | 9 | 90.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin