Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Parse error in wp-content/plugins/italian-cap-city-search/wrapper.php+82
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.90ms] Passed 4 tests
This is a short check of server-side resources used by Wp Italian Cap/Cities Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.08 ▼6.66 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.41 ▼9.01 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.59 ▼0.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.76 ▲0.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.32 ▲5.19 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Wp Italian Cap/Cities Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.27 ▼0.95 | 1.56 ▼0.56 | 46.16 ▲1.89 |
Dashboard /wp-admin | 2,203 ▲12 | 4.84 ▼0.07 | 96.57 ▼19.77 | 41.92 ▼4.51 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.01 | 39.71 ▲3.00 | 34.99 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.38 ▲5.67 | 601.58 ▼43.62 | 62.08 ▲11.94 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.26 ▲0.01 | 95.92 ▼0.16 | 41.95 ▲1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/italian-cap-city-search/widget-settings.php
- > /wp-content/plugins/italian-cap-city-search/woocommerce-settings.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/italian-cap-city-search/class.wp-italian-cap-results-widget.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/italian-cap-city-search/wp-cap-search.php:13
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/italian-cap-city-search/wrapper.php on line 82
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/italian-cap-city-search/views/widget_results.php on line 64
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/italian-cap-city-search/class.wp-italian-cap-search-widget.php:12
- > PHP Parse error
syntax error, unexpected 'else' (T_ELSE) in wp-content/plugins/italian-cap-city-search/admin/views/search_form_results.php on line 76
- > PHP Fatal error
Uncaught Error: Call to undefined function wpics_load_woocommerce_settings() in wp-content/plugins/italian-cap-city-search/admin/views/woocommerce_settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wpics_load_widget_settings() in wp-content/plugins/italian-cap-city-search/admin/views/widget_settings.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== italian-cap-city-search ===
)
italian-cap-city-search/wp-cap-search.php 92% from 13 tests
Analyzing the main PHP file in "Wp Italian Cap/Cities Search" version 1.0
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("italian-cap-city-search.php" instead of "wp-cap-search.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
Good job! No executable or dangerous file extensions detected678 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 111 | 223 | 624 |
JavaScript | 2 | 19 | 25 | 40 |
CSS | 2 | 4 | 9 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 5 | 41.67% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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