Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼292.99ms] Passed 4 tests
Analyzing server-side resources used by Accept Button For Membership 2
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 54.77 ▲3.97 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.73 ▲0.98 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.53 ▼0.50 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 96.19 ▼1,167.89 |
Media Library /wp-admin/upload.php | 3.30 ▼0.01 | 24.68 ▼4.53 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Accept Button For Membership 2: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 16.26 ▲0.27 | 5.93 ▼0.09 | 2.50 ▲0.16 |
Dashboard /wp-admin | 2,889 ▲28 | 6.12 ▼0.02 | 117.56 ▼14.28 | 152.93 ▼6.03 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.23 ▼0.02 | 61.45 ▼1.49 | 135.94 ▼4.26 |
Add New Post /wp-admin/post-new.php | 1,668 ▲7 | 18.11 ▲1.73 | 407.91 ▼17.65 | 149.53 ▼2.98 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.54 ▼0.01 | 139.11 ▲3.92 | 184.75 ▼0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 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 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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/accept-button-for-membership-2/accept-button-for-membership-2.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Requires at least: The plugin version is formatted incorrectly
- Tested up to: The plugin version is formatted incorrectly
accept-button-for-membership-2/accept-button-for-membership-2.php Passed 13 tests
The entry point to "Accept Button For Membership 2" version 1.0.0 is a PHP file that has certain tags in its header comment area
114 characters long description:
Adds a shortcode to hide the PayPal pay now button for Membership 2 plugin until user clicks an 'I ACCEPT' button.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected25 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 11 | 9 | 25 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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
There were not PNG files found in your plugin