Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.10ms] Passed 4 tests
Analyzing server-side resources used by Pay with Square in MemberPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.34 ▼2.78 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.94 ▼12.71 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.62 ▼1.31 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.22 ▼10.18 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.11 ▼2.72 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pay with Square in MemberPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 13.26 ▼1.13 | 1.73 ▲0.10 | 40.19 ▼6.81 |
Dashboard /wp-admin | 2,217 ▲25 | 5.82 ▲0.83 | 97.43 ▼7.53 | 40.44 ▼1.63 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.03 ▲0.02 | 37.25 ▼3.59 | 33.95 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.35 ▲5.90 | 586.22 ▼104.68 | 49.57 ▼3.45 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.33 ▲0.13 | 101.01 ▼4.26 | 45.76 ▲0.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pay-with-square-in-memberpress/MpFreeSquare.php
- > /wp-content/plugins/pay-with-square-in-memberpress/includes/MeprFreeSquareCtrl.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pay-with-square-in-memberpress/includes/views/square-admin-form.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7, #8 in pay-with-square-in-memberpress/assets to your readme.txt
pay-with-square-in-memberpress/square-for-memberpress.php 85% from 13 tests
The principal PHP file in "Pay with Square in MemberPress" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- 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
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pay-with-square-in-memberpress.php" instead of "square-for-memberpress.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin941 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 168 | 48 | 739 |
CSS | 2 | 20 | 10 | 120 |
JavaScript | 3 | 16 | 20 | 82 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 47 | 97.92% |
▷ Protected methods | 1 | 2.08% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin