Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.26ms] Passed 4 tests
Analyzing server-side resources used by bbPress Info Widgets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 46.86 ▲6.98 |
Dashboard /wp-admin | 3.37 ▲0.07 | 51.75 ▼4.79 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 54.65 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 94.43 ▼5.74 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 39.19 ▲1.54 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/bbpress-info-widgets/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
widget_bbpressforumcustom |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_bbpresstopicinfocustom |
widget_bbpresstopicscustom |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for bbPress Info Widgets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.26 ▼1.14 | 1.85 ▼0.31 | 42.61 ▲2.11 |
Dashboard /wp-admin | 2,221 ▲18 | 4.86 ▼0.04 | 110.61 ▲1.13 | 42.02 ▲0.26 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.01 | 40.61 ▼0.23 | 36.12 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 17.63 ▼5.19 | 669.27 ▲18.75 | 62.85 ▲7.55 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.24 ▲0.09 | 110.18 ▼9.53 | 47.46 ▼0.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 9 options
- widget_recent-posts
- db_upgraded
- widget_bbpresstopicinfocustom
- theysaidso_admin_options
- widget_bbpresstopicscustom
- widget_recent-comments
- widget_bbpressforumcustom
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function MotleyFool\\BbpressWidgets\\add_action() in wp-content/plugins/bbpress-info-widgets/fool-wp-bbpress-widgets.php:41
- > PHP Notice
Undefined variable: widget_query in wp-content/plugins/bbpress-info-widgets/FoolWidgets/views/recenttopics-widget.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/bbpress-info-widgets/FoolWidgets/views/recenttopics-widget.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bbpress-info-widgets/FoolWidgets/BBPressForumWidget.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/bbpress-info-widgets/FoolWidgets/views/topicinfo-admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bbpress-info-widgets/FoolWidgets/BBPressTopicsWidget.php:7
- > PHP Notice
Undefined variable: widget_query in wp-content/plugins/bbpress-info-widgets/FoolWidgets/views/forum-widget.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/bbpress-info-widgets/FoolWidgets/views/forum-widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_title() in wp-content/plugins/bbpress-info-widgets/FoolWidgets/views/topicinfo-widget.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/bbpress-info-widgets/FoolWidgets/views/forum-admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Topic Info widget displaying information about the topic being viewed. Custom CSS has been applied.), #2 (Forums Info widget (top) showing all forums with the number of topics and posts. Recent Topics widget (bottom) displays the most recent topics or the most popular topics. Custom CSS has been applied.)
bbpress-info-widgets/fool-wp-bbpress-widgets.php 69% from 13 tests
The main PHP file in "bbPress Info Widgets" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bbpress-info-widgets.php" instead of "fool-wp-bbpress-widgets.php")
- Domain Path: The domain path must begin with a forward slash character ("//")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected317 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 81 | 51 | 317 |
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.12 |
Average class complexity | 5.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 15.00KB | 9.07KB | ▼ 39.52% |
screenshot-2.png | 44.55KB | 23.95KB | ▼ 46.24% |