Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼3.67ms] Passed 4 tests
Analyzing server-side resources used by bbPress Topic Location
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.18 | 39.40 ▼2.34 |
Dashboard /wp-admin | 3.49 ▲0.19 | 45.61 ▼4.04 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 46.82 ▼2.70 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 93.12 ▼5.60 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 39.49 ▲4.30 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
bbptl-db |
can_compress_scripts |
theysaidso_admin_options |
widget_bbptl_search_widget |
Browser metrics Passed 4 tests
A check of browser resources used by bbPress Topic Location
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲194 | 14.07 ▼0.31 | 5.84 ▲3.88 | 44.46 ▼1.30 |
Dashboard /wp-admin | 2,224 ▲32 | 5.87 ▲0.89 | 100.36 ▼7.12 | 41.81 ▼0.37 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.08 ▲0.01 | 38.28 ▼6.62 | 35.45 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.40 ▲5.22 | 678.86 ▲25.91 | 53.51 ▼13.94 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.21 ▲0.01 | 100.69 ▼0.44 | 45.27 ▲1.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- bbptl-db
- widget_bbptl_search_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bbpress-topic-location/bbpress-topic-location.php:94
- > PHP Fatal error
Uncaught Error: Call to undefined function bbpress() in wp-content/plugins/bbpress-topic-location/templates/search-feedback.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bbpress-topic-location/bbptl-widgets.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function bbptl_get_current_unit_obj() in wp-content/plugins/bbpress-topic-location/templates/search-form.php:2
- > PHP Fatal error
Uncaught Error: Class 'bbPressTopicLocationGeoData' not found in wp-content/plugins/bbpress-topic-location/templates/geodata-edit.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-topic-location/bbptl-admin.php:17
- > PHP Fatal error
Uncaught Error: Class 'bbPressTopicLocationGeoData' not found in wp-content/plugins/bbpress-topic-location/templates/geodata-display.php:4
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: open street map, geolocation, geocoding, bbpress
bbpress-topic-location/bbpress-topic-location.php 92% from 13 tests
The principal PHP file in "bbPress Topic Location" v. 1.0.9 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,143 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 310 | 209 | 765 |
JavaScript | 1 | 37 | 4 | 133 |
CSS | 1 | 8 | 18 | 122 |
Sass | 1 | 17 | 0 | 115 |
Ruby | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Analyzing 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.29 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 60 | |
▷ Static methods | 11 | 18.33% |
▷ Public methods | 59 | 98.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.67% |
Functions | 8 | |
▷ Named functions | 8 | 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