Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.92MB] [CPU: ▼36.52ms] Passed 4 tests
Analyzing server-side resources used by WP Auto Restaurant Finder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 37.89 ▼1.41 |
Dashboard /wp-admin | 3.03 ▼0.31 | 23.28 ▼42.00 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 26.50 ▼22.43 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.85 | 26.24 ▼72.87 |
Media Library /wp-admin/upload.php | 3.03 ▼0.19 | 22.74 ▼8.79 |
WP Auto Restaurant Finder /wp-admin/options-general.php?page=wp-auto-restaurant-finder/wp-auto-restaurant-finder.php | 3.04 | 23.23 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Auto Restaurant Finder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.38 ▲0.03 | 1.56 ▼0.27 | 41.33 ▲3.67 |
Dashboard /wp-admin | 2,199 ▲18 | 5.57 ▼0.07 | 90.48 ▼12.47 | 36.71 ▼5.71 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.04 | 38.38 ▼0.33 | 36.97 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.98 ▲0.21 | 674.65 ▲45.75 | 46.40 ▼6.87 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.18 ▼0.01 | 97.62 ▲2.33 | 40.11 ▼0.02 |
WP Auto Restaurant Finder /wp-admin/options-general.php?page=wp-auto-restaurant-finder/wp-auto-restaurant-finder.php | 912 | 2.00 | 22.96 | 26.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp-auto-restaurant-finder/wp-auto-restaurant-finder.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-auto-restaurant-finder/wp-auto-restaurant-finder.php:109
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 50 tag instead of maximum 10
- Screenshots: These screenshots lack descriptions #1, #2 in wp-auto-restaurant-finder/assets to your readme.txt
wp-auto-restaurant-finder/wp-auto-restaurant-finder.php Passed 13 tests
The entry point to "WP Auto Restaurant Finder" version 1.0.0 is a PHP file that has certain tags in its header comment area
66 characters long description:
A plugin to get/find Restaurants on google maps in a very easy way
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin705 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 117 | 43 | 306 |
PHP | 1 | 53 | 32 | 205 |
CSS | 1 | 24 | 0 | 152 |
HTML | 1 | 10 | 0 | 42 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
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 | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/pin.png | 3.34KB | 1.85KB | ▼ 44.62% |