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.03MB] [CPU: ▼2.16ms] Passed 4 tests
This is a short check of server-side resources used by Geo Location
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 49.35 ▲2.79 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.25 ▲1.05 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.63 ▼0.84 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 97.35 ▼11.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 41.62 ▲6.90 |
Server storage [IO: ▲3.07MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_visitorInfo |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Geo Location: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲162 | 16.62 ▲2.24 | 1.75 ▼0.15 | 38.32 ▼2.43 |
Dashboard /wp-admin | 2,352 ▲167 | 12.43 ▲7.33 | 172.84 ▲60.32 | 41.03 ▼2.20 |
Posts /wp-admin/edit.php | 2,238 ▲146 | 8.99 ▲6.96 | 76.78 ▲36.52 | 60.67 ▲26.20 |
Add New Post /wp-admin/post-new.php | 1,770 ▲228 | 26.62 ▲8.55 | 658.67 ▲60.12 | 34.97 ▼27.08 |
Media Library /wp-admin/upload.php | 1,537 ▲146 | 10.75 ▲6.52 | 138.98 ▲36.99 | 46.34 ▲5.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method geoLocation::geolocation_geoLocationRemove() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/geo-location/geolocation.php:25
- > 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, 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:
- Requires at least: Version not formatted correctly
- Screenshots: These screenshots require images: #1 (Screenshot of the backend visitors display page tab), #2 (Screen shot of backend with API key form), #3 (Screen shot of backend map preview.), #4 (Screenshot of all unique visitors mapped in bing map), #5 (Screenshot of page blocked visitors will see.), #6 (Screenshot of single visitor in bing map on overlay in admin area.)
geo-location/geolocation.php 92% from 13 tests
"Geo Location" version 2.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("geo-location.php" instead of "geolocation.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
No dangerous file extensions were detected1,386 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 273 | 97 | 642 |
PHP | 1 | 114 | 31 | 414 |
CSS | 1 | 88 | 14 | 330 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 3.00MB with 1.61MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 836.71KB | 252.27KB | ▼ 69.85% |
screenshot-2.png | 66.76KB | 32.77KB | ▼ 50.91% |
screenshot-1.png | 58.14KB | 31.34KB | ▼ 46.11% |
screenshot-3.png | 1,393.51KB | 395.19KB | ▼ 71.64% |
screenshot-5.png | 4.79KB | 3.36KB | ▼ 29.88% |