Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.05ms] Passed 4 tests
This is a short check of server-side resources used by TakBull For Paid Memberships Pro
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.80 ▼2.12 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.12 ▼17.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.30 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.59 ▼8.02 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.27 ▼0.66 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by TakBull For Paid Memberships Pro
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.37 ▼1.03 | 1.70 ▼0.18 | 38.87 ▼5.13 |
Dashboard /wp-admin | 2,206 ▲15 | 5.85 ▼0.10 | 108.74 ▲6.61 | 41.52 ▼2.27 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.02 ▼0.04 | 40.19 ▲4.23 | 34.50 ▼1.29 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.28 ▲5.70 | 602.23 ▼21.15 | 56.14 ▲5.37 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▼0.00 | 99.63 ▲2.58 | 42.35 ▲0.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'PMPRO_DIR/classes/gateways/class.pmprogateway.php' (include_path='.:/usr/share/php') in wp-content/plugins/paid-memberships-pro-takbull-gateway/classes/class.pmprogateway_takbull.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/paid-memberships-pro-takbull-gateway/pmpro-takbull-gateway.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/paid-memberships-pro-takbull-gateway/includes/takbull_webhook.php:4
- > PHP Warning
Use of undefined constant PMPRO_DIR - assumed 'PMPRO_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/paid-memberships-pro-takbull-gateway/classes/class.pmprogateway_takbull.php on line 3
- > PHP Warning
require_once(PMPRO_DIR/classes/gateways/class.pmprogateway.php): failed to open stream: No such file or directory in wp-content/plugins/paid-memberships-pro-takbull-gateway/classes/class.pmprogateway_takbull.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paid-memberships-pro-takbull-gateway/includes/takbull_order.php:24
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Invalid URI ("")
paid-memberships-pro-takbull-gateway/pmpro-takbull-gateway.php 69% from 13 tests
The main file in "TakBull For Paid Memberships Pro" v. 1.1.2.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "4.4")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("paid-memberships-pro-takbull-gateway.php" instead of "pmpro-takbull-gateway.php")
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,282 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 172 | 210 | 1,344 |
CSS | 1 | 0 | 0 | 585 |
JavaScript | 2 | 81 | 12 | 353 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 26.20 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 26 | 34.67% |
▷ Public methods | 72 | 96.00% |
▷ Protected methods | 2 | 2.67% |
▷ Private methods | 1 | 1.33% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin