Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.11ms] Passed 4 tests
Analyzing server-side resources used by BP Group Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.63 ▼3.91 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.58 ▼15.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.01 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.25 ▼11.33 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.19 ▲1.00 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for BP Group Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.09 | 1.69 ▼0.01 | 35.24 ▼9.75 |
Dashboard /wp-admin | 2,192 ▲21 | 5.55 ▼0.04 | 82.07 ▼9.34 | 37.37 ▼6.10 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.01 | 38.57 ▲3.09 | 32.64 ▼5.29 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.39 ▲0.27 | 658.92 ▼1.87 | 57.88 ▼0.84 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▲0.01 | 96.44 ▼5.97 | 42.57 ▼2.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-group-analytics/loader.php:73
- > 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 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 lack descriptions #1, #2 in bp-group-analytics/assets to your readme.txt
bp-group-analytics/loader.php 85% from 13 tests
The main PHP script in "BP Group Analytics" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WP 3.5.1, BuddyPress 1.6.5")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-group-analytics.php" instead of "loader.php")
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 detected322 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 76 | 128 | 305 |
Markdown | 1 | 7 | 0 | 10 |
CSS | 1 | 2 | 7 | 5 |
JavaScript | 1 | 0 | 4 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 61.54% |
▷ Protected methods | 5 | 38.46% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
No PNG images were found in this plugin