Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼7.28MB] [CPU: ▼1,493,685.81ms] Passed 4 tests
A check of server-side resources used by BuddyPress Simple Terms And Conditions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▼29.18 | 44.41 ▼5,974,746.20 |
Dashboard /wp-admin | 3.37 ▲0.02 | 54.75 ▼0.65 |
Posts /wp-admin/edit.php | 3.49 ▲0.09 | 53.89 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.02 | 95.78 ▲2.52 |
Media Library /wp-admin/upload.php | 3.30 ▲0.02 | 37.40 ▲4.47 |
Simple Terms and Conditions /wp-admin/options-general.php?page=bp-tandc | 3.27 | 32.85 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
tandc_headline |
tandc_style |
widget_recent-posts |
tandc_checkboxtext |
widget_recent-comments |
widget_theysaidso_widget |
tandc_error |
db_upgraded |
tandc_description |
... |
Browser metrics Passed 4 tests
Checking browser requirements for BuddyPress Simple Terms And Conditions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲22 | 14.27 ▼0.08 | 1.68 ▼0.50 | 42.89 ▼2.60 |
Dashboard /wp-admin | 2,199 ▲19 | 5.53 ▼0.14 | 89.58 ▼3.40 | 41.24 ▲1.53 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.05 | 39.52 ▲0.45 | 39.27 ▲5.39 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 18.22 ▼4.62 | 675.76 ▼20.12 | 76.30 ▲20.83 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.20 ▲0.02 | 98.61 ▲0.06 | 45.69 ▼0.75 |
Simple Terms and Conditions /wp-admin/options-general.php?page=bp-tandc | 853 | 2.01 | 22.93 | 24.64 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 11 options
- tandc_error
- tandc_style
- tandc_headline
- can_compress_scripts
- tandc_checkboxtext
- widget_theysaidso_widget
- widget_recent-posts
- tandc_description
- theysaidso_admin_options
- widget_recent-comments
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bp-tandc
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=bp-tandc
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/simple-terms-and-conditions-for-buddypress/bp-simple-terms-and-conditions.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-terms-and-conditions-for-buddypress/tandc-options-template.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Donate link: Please fix this invalid url: ""
simple-terms-and-conditions-for-buddypress/bp-simple-terms-and-conditions.php 77% from 13 tests
"BuddyPress Simple Terms And Conditions" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WordPress 4.4, BuddyPress 2.4.3")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-terms-and-conditions-for-buddypress.php" instead of "bp-simple-terms-and-conditions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected127 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 11 | 16 | 82 |
PO File | 1 | 11 | 11 | 45 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
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 | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 14.73KB | 7.38KB | ▼ 49.91% |
assets/screenshot-2.png | 47.38KB | 19.11KB | ▼ 59.66% |