Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.09MB] [CPU: ▼39.34ms] Passed 4 tests
Analyzing server-side resources used by Local Geo Search
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▼0.58 | 17.82 ▼21.68 |
Dashboard /wp-admin | 2.93 ▼0.38 | 16.62 ▼34.42 |
Posts /wp-admin/edit.php | 2.93 ▼0.43 | 18.02 ▼30.63 |
Add New Post /wp-admin/post-new.php | 2.93 ▼2.96 | 20.76 ▼70.64 |
Media Library /wp-admin/upload.php | 2.93 ▼0.30 | 17.13 ▼19.18 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Local Geo Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲15 | 14.32 ▼0.03 | 1.74 ▼0.33 | 42.80 ▼2.42 |
Dashboard /wp-admin | 2,210 ▲33 | 5.64 ▼0.03 | 89.47 ▼10.39 | 40.24 ▼3.24 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.03 ▲0.02 | 40.34 ▲3.48 | 44.60 ▲13.08 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 21.97 ▼1.29 | 679.79 ▲9.15 | 53.80 ▼11.61 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.20 ▲0.06 | 99.27 ▼4.65 | 42.46 ▲2.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/local-geo-search/classes/fns.tools.php+17
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/local-geo-search/admin/views/view.admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/local-geo-search/admin/admin.geoseo.php:381
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/local-geo-search/admin/admin.geoseo.php:381
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: Please describe screenshot #1 in local-geo-search/assets to your readme.txt
local-geo-search/geoseo.php 92% from 13 tests
Analyzing the main PHP file in "Local Geo Search" version 2.0.3
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("local-geo-search.php" instead of "geoseo.php")
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
Success! There were no dangerous files found in this plugin1,014 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 332 | 305 | 981 |
CSS | 1 | 4 | 0 | 21 |
JavaScript | 1 | 0 | 1 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 22.25 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 14 | 34.15% |
▷ Public methods | 39 | 95.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.88% |
Functions | 15 | |
▷ Named functions | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
front/images/icon.png | 0.41KB | 0.47KB | 0.00% |