Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.95ms] Passed 4 tests
An overview of server-side resources used by bbPress Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.29 ▼7.88 |
Dashboard /wp-admin | 3.40 ▲0.09 | 50.11 ▼3.11 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 52.93 ▲2.59 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 103.13 ▲4.59 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.73 ▲4.90 |
bbPress Shortcodes /wp-admin/options-general.php?page=bbpress_shortcodes | 3.29 | 35.44 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
bbpress_shortcodes |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
bbPress Shortcodes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲40 | 14.37 ▼0.01 | 1.84 ▼0.06 | 40.38 ▼3.25 |
Dashboard /wp-admin | 2,235 ▲55 | 5.62 ▼0.04 | 94.89 ▲3.18 | 43.58 ▲0.50 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.14 ▲0.02 | 41.59 ▲4.11 | 37.58 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,566 ▲35 | 18.09 ▼5.03 | 610.87 ▼68.79 | 65.53 ▲0.05 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.25 ▲0.04 | 99.38 ▼13.65 | 46.26 ▼1.82 |
bbPress Shortcodes /wp-admin/options-general.php?page=bbpress_shortcodes | 846 | 2.03 | 27.99 | 30.20 |
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 7 options in the database
- bbpress_shortcodes
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/bbp-shortcodes/admin/partials/admin-page.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: forum, bbpress shortcodes, shortcodes, bbpress, shortcode
bbp-shortcodes/bbpress-shortcodes.php 85% from 13 tests
The main PHP file in "bbPress Shortcodes" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to 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 ("bbp-shortcodes.php" instead of "bbpress-shortcodes.php")
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
Success! There were no dangerous files found in this plugin752 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 102 | 295 | 359 |
JavaScript | 4 | 11 | 13 | 263 |
PO File | 1 | 52 | 53 | 129 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 7.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 37 | |
▷ Static methods | 7 | 18.92% |
▷ Public methods | 32 | 86.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.51% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected