Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.42MB] [CPU: ▼2.27ms] Passed 4 tests
Analyzing server-side resources used by Search Exclude
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.44 | 40.59 ▼2.61 |
Dashboard /wp-admin | 3.80 ▲0.50 | 50.33 ▲4.27 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 50.73 ▲1.82 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 84.82 ▼12.57 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 39.82 ▲4.69 |
Search Exclude /wp-admin/options-general.php?page=search_exclude | 3.64 | 38.59 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 78 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
sep_exclude |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Search Exclude
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲107 | 14.70 ▲0.38 | 1.54 ▼0.36 | 37.51 ▼4.32 |
Dashboard /wp-admin | 2,296 ▲119 | 5.65 ▼0.07 | 90.27 ▼1.81 | 40.15 ▼2.60 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 1.97 ▼0.03 | 40.10 ▲1.78 | 35.17 ▲1.56 |
Add New Post /wp-admin/post-new.php | 6,233 ▲4,704 | 18.94 ▼3.99 | 942.06 ▲345.92 | 57.69 ▲6.57 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.20 ▲0.04 | 115.14 ▲16.17 | 47.64 ▲3.32 |
Search Exclude /wp-admin/options-general.php?page=search_exclude | 768 | 2.12 | 26.03 | 26.49 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- sep_exclude
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginDataByFile' not found in wp-content/plugins/search-exclude/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginByFile.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/search-exclude/vendor/automattic/jetpack-composer-plugin/src/class-manager.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/search-exclude/lib/views/options.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/search-exclude/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/view/suggestions.php:21
- > PHP Fatal error
Trait 'QuadLayers\\WP_Notice_Plugin_Promote\\Traits\\PluginActions' not found in wp-content/plugins/search-exclude/jetpack_vendor/quadlayers/wp-notice-plugin-promote/src/PluginBySlug.php on line 20
- > PHP Notice
Undefined variable: exclude in wp-content/plugins/search-exclude/lib/views/metabox.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function QuadLayers\\SearchExclude\\load_plugin_textdomain() in wp-content/plugins/search-exclude/lib/class-plugin.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/search-exclude/vendor/automattic/jetpack-composer-plugin/src/class-plugin.php:24
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-plugin-install-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/search-exclude/jetpack_vendor/quadlayers/wp-plugin-suggestions/src/Table.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/search-exclude/lib/views/column-cell.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: search, plugin, search exclude, admin
search-exclude/search-exclude.php Passed 13 tests
The main file in "Search Exclude" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
85 characters long description:
Hide any page or post from the WordPress search results by checking off the checkbox.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected4,050 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 567 | 1,777 | 2,806 |
Markdown | 12 | 270 | 0 | 730 |
JSON | 1 | 0 | 0 | 458 |
JavaScript | 3 | 9 | 14 | 55 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 15.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 1 | 4.76% |
Methods | 169 | |
▷ Static methods | 49 | 28.99% |
▷ Public methods | 137 | 81.07% |
▷ Protected methods | 5 | 2.96% |
▷ Private methods | 27 | 15.98% |
Functions | 16 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 16 | 100.00% |
Constants | 31 | |
▷ Global constants | 31 | 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
There are no PNG files in this plugin