Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.84ms] Passed 4 tests
Server-side resources used by BuddyPics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.83 ▼1.23 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.66 ▼5.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.88 ▼3.57 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.32 ▼19.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.48 ▼2.63 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for BuddyPics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.27 ▼1.11 | 1.69 ▼0.17 | 41.84 ▼2.56 |
Dashboard /wp-admin | 2,221 ▲33 | 4.80 ▼1.04 | 104.19 ▼11.99 | 38.93 ▼4.31 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 1.97 ▲0.00 | 35.75 ▼1.78 | 32.40 ▼4.03 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.14 ▲5.61 | 680.26 ▲10.83 | 53.47 ▲2.06 |
Media Library /wp-admin/upload.php | 1,394 ▲12 | 4.18 ▼0.04 | 95.98 ▲0.54 | 45.67 ▲1.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- 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 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/buddypics/includes/bpa.filters.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypics/includes/bpa.screens.php:532
- > PHP Fatal error
Uncaught Error: Call to undefined function bp_album_picture_has_activity() in wp-content/plugins/buddypics/includes/templates/album/comments.php:1
- > PHP Fatal error
Uncaught Error: Call to a member function db_version() on null in wp-content/plugins/buddypics/includes/utils/class.version.check.php:449
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypics/loader.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypics/includes/bpa.cssjs.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 24 tag instead of maximum 10
buddypics/loader.php 85% from 13 tests
"BuddyPics" version 0.3.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddypics.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
Everything looks great! No dangerous files found in this plugin5,234 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 990 | 1,043 | 2,763 |
PO File | 9 | 1,056 | 1,671 | 2,310 |
CSS | 1 | 27 | 7 | 159 |
JavaScript | 1 | 2 | 9 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 50.75 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 6.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 3 | 8.33% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 109 | |
▷ Named functions | 109 | 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