Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.32ms] Passed 4 tests
A check of server-side resources used by BuddyPress Default Cover Photo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 43.06 ▲0.09 |
Dashboard /wp-admin | 57.91 ▲54.56 | 11,271,050.30 ▲11,270,997.13 |
Posts /wp-admin/edit.php | 3.51 ▲0.10 | 49.19 ▼9.19 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.04 | 92.07 ▼17.76 |
Media Library /wp-admin/upload.php | 3.31 ▲0.04 | 40.78 ▲1.60 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by BuddyPress Default Cover Photo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.10 ▼0.51 | 2.19 ▲0.31 | 45.25 ▲2.24 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.07 | 93.74 ▲1.30 | 41.41 ▼1.13 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.01 ▲0.00 | 34.79 ▼8.11 | 34.79 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.63 ▼0.12 | 698.31 ▲27.77 | 61.23 ▲1.74 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.13 ▼0.09 | 98.06 ▼0.55 | 44.50 ▼0.56 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-cover-photo/buddypress-cover-photo.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: buddypress, profile cover, default cover, groups, avatar...
buddypress-cover-photo/buddypress-cover-photo.php Passed 13 tests
The main PHP file in "BuddyPress Default Cover Photo" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
Define default Cover photo to BuddyPress Profiles and Groups.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin940 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 265 | 192 | 696 |
PO File | 3 | 60 | 71 | 200 |
JavaScript | 1 | 8 | 6 | 44 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
There were not PNG files found in your plugin