Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.77ms] Passed 4 tests
Analyzing server-side resources used by Our Geolocation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 46.39 ▼3.00 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.40 ▼8.12 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.87 ▼1.98 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.98 ▼9.43 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.72 ▼2.51 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options |
---|
our-geolocation-getdir |
theysaidso_admin_options |
widget_recent-posts |
our-geolocation-width |
our-geolocation-height |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Our Geolocation
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 14.53 ▲0.16 | 27.61 ▲25.75 | 37.44 ▼8.36 |
Dashboard /wp-admin | 2,222 ▲34 | 5.06 ▲0.18 | 96.37 ▼17.94 | 41.33 ▼1.65 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.02 ▲0.01 | 33.63 ▼5.29 | 34.66 ▲1.54 |
Add New Post /wp-admin/post-new.php | 1,532 ▼4 | 23.42 ▲0.24 | 670.52 ▲6.04 | 56.31 ▼1.24 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.21 ▲0.03 | 95.72 ▼6.80 | 47.20 ▼0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'unset_geoloc_options' not found or invalid function name
- The uninstall procedure has failed, leaving 9 options in the database
- our-geolocation-getdir
- widget_theysaidso_widget
- can_compress_scripts
- our-geolocation-width
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- our-geolocation-height
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/our-geolocation/our-geolocation.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
our-geolocation/our-geolocation.php Passed 13 tests
The entry point to "Our Geolocation" version 1.0 is a PHP file that has certain tags in its header comment area
55 characters long description:
Simply show your geographical location to your visitor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin333 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 11 | 245 |
JavaScript | 2 | 14 | 0 | 88 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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