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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.21ms] Passed 4 tests
A check of server-side resources used by GD bbPress Attachments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 44.66 ▲2.37 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.69 ▼2.87 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 43.27 ▼5.50 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 88.95 ▼6.85 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 37.56 ▲3.37 |
Attachments /wp-admin/edit.php?post_type=forum&page=gdbbpress_attachments | 3.23 | 23.62 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
gd-bbpress-attachments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GD bbPress Attachments
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 13.26 ▼1.04 | 4.52 ▲2.74 | 40.58 ▼0.71 |
Dashboard /wp-admin | 2,208 ▲20 | 5.84 ▼0.16 | 94.46 ▼22.95 | 38.97 ▼9.49 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 1.96 ▼0.02 | 34.00 ▼4.94 | 34.71 ▼2.87 |
Add New Post /wp-admin/post-new.php | 1,535 ▼0 | 22.98 ▼0.19 | 599.25 ▼74.47 | 48.76 ▼18.00 |
Media Library /wp-admin/upload.php | 1,384 ▼7 | 4.34 ▲0.13 | 95.11 ▼4.86 | 40.38 ▼1.27 |
Attachments /wp-admin/edit.php?post_type=forum&page=gdbbpress_attachments | 28 | 0.44 | 0.06 | 3.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- gd-bbpress-attachments
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/gd-bbpress-attachments/forms/tabs/about.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gd-bbpress-attachments/forms/tabs/attachments.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gd-bbpress-attachments/forms/tabs/advanced.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/gd-bbpress-attachments/forms/panels.php:6
- > PHP Warning
Use of undefined constant GDBBPRESSATTACHMENTS_PATH - assumed 'GDBBPRESSATTACHMENTS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gd-bbpress-attachments/forms/tabs/tools.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gd-bbpress-attachments/forms/tabs/images.php:8
- > PHP Fatal error
require_once(): Failed opening required 'GDBBPRESSATTACHMENTS_PATHcode/tools.php' (include_path='.:/usr/share/php') in wp-content/plugins/gd-bbpress-attachments/forms/tabs/tools.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gd-bbpress-attachments/forms/uploader.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function d4p_get_post_attachments() in wp-content/plugins/gd-bbpress-attachments/forms/attachments/meta_files.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gd-bbpress-attachments/forms/attachments/meta_forum.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=forum&page=gdbbpress_attachments
- > Network (severe)
wp-admin/edit.php?post_type=forum&page=gdbbpress_attachments - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: limit, meta, topic, attachments, dev4press...
gd-bbpress-attachments/gd-bbpress-attachments.php Passed 13 tests
This is the main PHP file of "GD bbPress Attachments" version 4.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
136 characters long description:
Implements attachments upload to the topics and replies in bbPress plugin through media library and add additional forum based controls.
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
Success! There were no dangerous files found in this plugin2,354 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 346 | 62 | 1,699 |
Sass | 2 | 66 | 0 | 336 |
CSS | 4 | 18 | 0 | 292 |
JavaScript | 2 | 8 | 2 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 5 | 8.62% |
▷ Public methods | 56 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.45% |
Functions | 19 | |
▷ Named functions | 19 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/gfx/attachment.png | 3.09KB | 0.38KB | ▼ 87.53% |
css/gfx/icons.png | 7.71KB | 2.64KB | ▼ 65.75% |