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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼8.53ms] Passed 4 tests
Server-side resources used by bbPress Votes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 36.36 ▼2.83 |
Dashboard /wp-admin | 3.58 ▲0.24 | 45.80 ▼16.43 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 48.68 ▲3.55 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 83.21 ▼18.39 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 39.49 ▲4.87 |
bbPress Votes /wp-admin/options-general.php?page=bbpvotes | 3.44 | 30.91 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
recovery_mode_email_last_sent |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for bbPress Votes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.12 | 4.43 ▲2.48 | 45.14 ▲3.35 |
Dashboard /wp-admin | 2,210 ▲19 | 5.77 ▲0.91 | 120.15 ▲17.54 | 38.88 ▼5.18 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.05 | 35.33 ▼2.36 | 34.84 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.43 ▼0.09 | 683.48 ▲13.95 | 64.46 ▲13.37 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.20 ▼0.12 | 94.12 ▼4.41 | 42.99 ▼0.58 |
bbPress Votes /wp-admin/options-general.php?page=bbpvotes | 714 | 1.53 | 7.97 | 27.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- recovery_mode_email_last_sent
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=bbpvotes
- > Error in wp-content/plugins/bbpress-votes/bbpvotes-functions.php+139
Uncaught Error: Call to undefined function bbp_get_topic_post_type() in wp-content/plugins/bbpress-votes/bbpvotes-functions.php:139
Stack trace:
#0 wp-content/plugins/bbpress-votes/bbpvotes-functions.php(111): bbpvotes_get_allowed_post_types()
#1 wp-content/plugins/bbpress-votes/bbpvotes-settings.php(200): bbpvotes_get_enabled_post_types()
#2 wp-admin/includes/template.php(1824): bbP_Votes_Settings->post_types_callback()
#3 wp-admin/includes/template.php(1778): do_settings_fields()
#4 wp-content/plugins/bbpress-votes/bbpvotes-settings.php(355): do_settings_sections()
#5 wp-includes/class-wp-hook.php(310): bbP_Votes_Settings->settings_page()
#6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 wp-includes/plugin.php(517): WP_Hook->do_action()
#8 wp-admin/admin.php(259): do_action()
#9 wp-adm
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
The following issues need your attention
- 5× 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/bbpress-votes/bbpvotes-buddypress.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function bbpvotes() in wp-content/plugins/bbpress-votes/bbpvotes-admin.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bbpress-votes/bbpress-votes.php:83
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-votes/bbpvotes-ajax.php:53
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-votes/bbpvotes-settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: reputation, vote, rate, buddypress, rating...
bbpress-votes/bbpress-votes.php 92% from 13 tests
The primary PHP file in "bbPress Votes" version 1.2.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,991 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 506 | 220 | 1,297 |
PO File | 3 | 201 | 220 | 467 |
JavaScript | 1 | 32 | 1 | 103 |
Sass | 1 | 10 | 0 | 66 |
CSS | 1 | 0 | 10 | 51 |
Ruby | 1 | 8 | 13 | 7 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 61 | |
▷ Static methods | 1 | 1.64% |
▷ Public methods | 60 | 98.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.64% |
Functions | 31 | |
▷ Named functions | 31 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin