Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/bbpress-topic-sections/bbp_ts-admin.php+41
Accessing static property bbP_Topic_Sections_Admin::$db_version_option_name as non static
Server metrics [RAM: ▼1.24MB] [CPU: ▼50.16ms] Passed 4 tests
Server-side resources used by bbPress Topic Sections
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.40 | 40.28 ▼4.46 |
Dashboard /wp-admin | 2.70 ▼0.60 | 8.27 ▼42.22 |
Posts /wp-admin/edit.php | 2.70 ▼0.65 | 11.76 ▼35.60 |
Add New Post /wp-admin/post-new.php | 2.70 ▼3.18 | 10.25 ▼97.93 |
Media Library /wp-admin/upload.php | 2.70 ▼0.52 | 7.59 ▼24.90 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_topic_sectionmeta |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
_bbp-ts_db_version |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for bbPress Topic Sections
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.28 ▼1.11 | 1.71 ▼0.37 | 39.73 ▼2.95 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲1.00 | 105.27 ▲3.08 | 37.97 ▼9.30 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.04 | 40.72 ▲3.83 | 35.21 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 22.99 ▲5.47 | 652.73 ▼4.33 | 66.06 ▲17.01 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.23 ▲0.00 | 97.35 ▼3.69 | 42.95 ▼3.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/bbpress-topic-sections/bbp_ts-admin.php+41
Accessing static property bbP_Topic_Sections_Admin::$db_version_option_name as non static
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_topic_sectionmeta
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- _bbp-ts_db_version
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bbpress-topic-sections/theme/form-topic_sections.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bbpress-topic-sections/theme/content-single-topic_section.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/bbpress-topic-sections/theme/loop-topic_sections.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function bbp_ts_section_classes() in wp-content/plugins/bbpress-topic-sections/theme/form-single-topic_section.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bbpress-topic-sections/bbpress-topic-sections.php:98
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tested up to: Invalid version format
- Requires at least: Invalid version format
bbpress-topic-sections/bbpress-topic-sections.php 92% from 13 tests
Analyzing the main PHP file in "bbPress Topic Sections" version 1.0.3
It is important 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,959 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 490 | 447 | 1,828 |
PO File | 2 | 36 | 36 | 107 |
CSS | 1 | 6 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 89.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 120 | |
▷ Static methods | 3 | 2.50% |
▷ Public methods | 102 | 85.00% |
▷ Protected methods | 16 | 13.33% |
▷ Private methods | 2 | 1.67% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 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
There are no PNG files in this plugin