Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.63ms] Passed 4 tests
An overview of server-side resources used by BP Profile Cover
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.45 ▼0.01 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.73 ▼4.25 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 43.76 ▲0.93 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 99.67 ▼5.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.44 ▼0.40 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by BP Profile Cover
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.81 ▲0.43 | 1.77 ▼0.19 | 43.84 ▼7.76 |
Dashboard /wp-admin | 2,206 ▲18 | 5.06 ▲0.19 | 112.27 ▼2.18 | 43.69 ▼2.96 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▼0.01 | 34.29 ▼7.69 | 33.70 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.59 ▼0.73 | 656.10 ▲2.97 | 55.00 ▲4.09 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.26 ▼0.04 | 96.90 ▼1.62 | 44.27 ▲1.75 |
Uninstaller [IO: ▲0.00MB] [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
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bp-profile-cover/loader.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: profile image, buddypress, cover image, profile cover
bp-profile-cover/loader.php 85% from 13 tests
Analyzing the main PHP file in "BP Profile Cover" version 1.3
The following require your attention:
- Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WP 3.8, BuddyPress 2.3")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bp-profile-cover.php" instead of "loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin639 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 93 | 53 | 550 |
PO File | 1 | 34 | 73 | 87 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 17.60 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected