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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.68ms] Passed 4 tests
An overview of server-side resources used by BuddyPress Multilingual
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 47.78 ▲1.54 |
Dashboard /wp-admin | 3.33 ▲0.02 | 55.14 ▲2.45 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 55.32 ▲3.50 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 96.77 ▼10.21 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.75 ▲5.79 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPress Multilingual
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲4 | 13.20 ▼1.20 | 5.50 ▲3.59 | 45.34 ▲2.25 |
Dashboard /wp-admin | 2,210 ▲4 | 4.86 ▼0.94 | 102.65 ▼5.56 | 41.29 ▼0.72 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 1.97 ▼0.05 | 40.01 ▲1.02 | 35.00 ▲0.01 |
Add New Post /wp-admin/post-new.php | 1,541 ▼1 | 23.10 ▲4.74 | 675.46 ▲39.01 | 55.57 ▼12.82 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▲0.00 | 96.58 ▼3.76 | 43.69 ▼0.20 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class.filters.php:5
- > PHP Fatal error
Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class-bpml-compatibility.php:3
- > PHP Fatal error
Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class.upgrade.php:5
- > PHP Fatal error
Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class.groups.php:8
- > PHP Fatal error
Uncaught Error: Interface 'IWPML_Backend_Action' not found in wp-content/plugins/buddypress-multilingual/includes/class.xprofile.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/buddypress-multilingual/sitepress-bp.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== buddypress-multilingual ===
) - Screenshots: These screenshots do not have images: #1 (Language switcher in the navigation), #2 (Message in other language), #3 (Activity stream), #4 (Profile)
buddypress-multilingual/sitepress-bp.php 92% from 13 tests
Analyzing the main PHP file in "BuddyPress Multilingual" version 1.7.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("buddypress-multilingual.php" instead of "sitepress-bp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,394 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 278 | 454 | 1,368 |
JavaScript | 1 | 1 | 0 | 14 |
XML | 1 | 0 | 0 | 9 |
JSON | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 22.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 114 | |
▷ Static methods | 6 | 5.26% |
▷ Public methods | 83 | 72.81% |
▷ Protected methods | 3 | 2.63% |
▷ Private methods | 28 | 24.56% |
Functions | 17 | |
▷ Named functions | 12 | 70.59% |
▷ Anonymous functions | 5 | 29.41% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 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
4 compressed PNG files occupy 0.33MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 129.13KB | 139.06KB | 0.00% |
screenshot-4.png | 81.53KB | 86.17KB | 0.00% |
screenshot-3.png | 48.71KB | 50.30KB | 0.00% |
screenshot-2.png | 76.39KB | 80.84KB | 0.00% |