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
Installer ran successfully
Server metrics [RAM: ▼0.58MB] [CPU: ▼18.48ms] Passed 4 tests
Server-side resources used by Network Database Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 37.51 ▼1.45 |
Dashboard /wp-admin | 3.40 ▲0.10 | 44.07 ▼6.77 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.51 ▼5.75 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.61 | 35.96 ▼58.97 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 34.47 ▼2.43 |
Database Search /wp-admin/tools.php?page=network-database-search | 3.29 | 32.24 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Network Database Search: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.66 ▼0.73 | 1.60 ▼0.07 | 42.35 ▲3.34 |
Dashboard /wp-admin | 2,207 ▲16 | 5.82 ▼0.08 | 99.99 ▼15.12 | 39.82 ▼13.56 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.04 | 39.50 ▲3.26 | 35.49 ▲2.72 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.29 ▲0.10 | 660.43 ▼34.90 | 58.68 ▼5.22 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.05 | 95.40 ▼4.04 | 44.87 ▲0.42 |
Database Search /wp-admin/tools.php?page=network-database-search | 855 | 1.92 | 37.31 | 31.59 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/network-database-search/result-filters/add-titles.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/network-database-search/result-filters/group-results/group-children-with-parents.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/network-database-search/query-types/gravity-forms.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/network-database-search/result-filters/clip-long-fields.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/network-database-search/query-types/core.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/network-database-search/api/get-rest-api-url.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/network-database-search/api/search-site.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/network-database-search/result-filters/group-results/get-missing-parents.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/network-database-search/result-filters/add-edit-links.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/network-database-search/api/get-query-types.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: options, network, custom fields, multisite, menus...
network-database-search/network-database-search.php Passed 13 tests
The main PHP file in "Network Database Search" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
140 characters long description:
Powerful multisite database search for WordPress administrators. Search posts, custom fields, menus, media, options, and even Gravity Forms.
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
Good job! No executable or dangerous file extensions detected1,343 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 84 | 100 | 640 |
PHP | 12 | 136 | 178 | 542 |
LESS | 2 | 32 | 11 | 160 |
CSS | 1 | 0 | 9 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 50 | |
▷ Named functions | 33 | 66.00% |
▷ Anonymous functions | 17 | 34.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin