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.06MB] [CPU: ▼7.91ms] Passed 4 tests
Server-side resources used by DiRT Directory Client
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.20 ▼0.49 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.15 ▼16.70 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.67 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.60 ▼13.94 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.72 ▲1.28 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
ddc_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DiRT Directory Client
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.57 ▼0.80 | 1.71 ▼0.05 | 40.06 ▲3.31 |
Dashboard /wp-admin | 2,203 ▲14 | 4.85 ▼0.06 | 105.99 ▼0.88 | 41.99 ▼2.81 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.97 ▼0.06 | 38.36 ▼4.31 | 35.82 ▼2.78 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.35 ▲0.14 | 578.92 ▼97.38 | 59.43 ▲11.19 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.25 ▲0.05 | 102.18 ▲0.40 | 39.83 ▼8.42 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- ddc_version
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/dirt-directory-client/tests/test-request.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dirt-directory-client/templates/dirt/directory.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dirt-directory-client/includes/theme-compatibility.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dirt-directory-client/includes/bpbd-integration.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dirt-directory-client/templates/dirt/explore.php:2
- > PHP Fatal error
Uncaught Error: Class 'BP_Group_Extension' not found in wp-content/plugins/dirt-directory-client/includes/bp-groups-integration.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dirt-directory-client/includes/user-integration.php:393
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/dirt-directory-client/templates/dirt/single.php:2
- > PHP Fatal error
Uncaught Error: Class 'BP_UnitTestCase' not found in wp-content/plugins/dirt-directory-client/tests/test-functions.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dirt-directory-client/includes/bp-integration.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: dirt, tools, digital, buddypress
dirt-directory-client/loader.php 92% from 13 tests
The principal PHP file in "DiRT Directory Client" v. 1.2.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("dirt-directory-client.php" instead of "loader.php")
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
No dangerous file extensions were detected2,317 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 431 | 819 | 1,705 |
Sass | 3 | 40 | 0 | 291 |
SVG | 1 | 0 | 0 | 135 |
JavaScript | 1 | 15 | 10 | 74 |
Bourne Shell | 1 | 15 | 4 | 59 |
Markdown | 1 | 15 | 0 | 20 |
XML | 1 | 0 | 0 | 14 |
YAML | 1 | 4 | 0 | 12 |
Ruby | 1 | 1 | 0 | 6 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 2.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 90.57% |
▷ Protected methods | 5 | 9.43% |
▷ Private methods | 0 | 0.00% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin