Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼8.20ms] Passed 4 tests
An overview of server-side resources used by WP GeoNames
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.51 ▼8.15 |
Dashboard /wp-admin | 3.53 ▲0.23 | 48.75 ▼6.47 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 50.75 ▼4.55 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.25 | 83.65 ▼13.64 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 35.92 ▲1.04 |
WP GeoNames /wp-admin/options-general.php?page=wpGeonames-options | 3.55 | 377.38 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_geonamesPostal |
wp_geonames |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
wpGeonames_dataList |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP GeoNames
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲13 | 13.80 ▼0.48 | 1.75 ▼0.23 | 40.30 ▼4.60 |
Dashboard /wp-admin | 2,205 ▲31 | 5.47 ▼0.22 | 102.56 ▲4.13 | 38.51 ▼6.13 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.67 ▲0.69 | 41.64 ▼0.62 | 36.85 ▲3.71 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.54 ▲0.52 | 640.12 ▲5.21 | 53.40 ▲1.39 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 5.16 ▲0.94 | 100.38 ▼0.87 | 44.59 ▲3.79 |
WP GeoNames /wp-admin/options-general.php?page=wpGeonames-options | 6,637 | 3.31 | 72.00 | 49.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'base_prefix' of non-object in wp-content/plugins/wp-geonames/patch.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-geonames/wp-geonames.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-geonames/templates/wp-geonames_location_taxonomy.php on line 14
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/wp-geonames/patch.php:7
- > PHP Notice
Undefined variable: shortcode in wp-content/plugins/wp-geonames/templates/wp-geonames_location_taxonomy.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-geonames/templates/wp-geonames_location_taxonomy.php:17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-geonames/templates/wp-geonames_location_taxonomy.php on line 13
- > PHP Notice
Undefined variable: shortcode in wp-content/plugins/wp-geonames/templates/wp-geonames_location_taxonomy.php on line 14
- > PHP Notice
Undefined variable: shortcode in wp-content/plugins/wp-geonames/templates/wp-geonames_location_taxonomy.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-geonames/templates/wp-geonames_location_taxonomy.php on line 16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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 need to be fixed:
- Screenshots: These screenshots do not have images: #1 (WP-GeoNames main tab in the Dashboard.), #2 (Check your database in Dashboard.)
wp-geonames/wp-geonames.php 92% from 13 tests
The entry point to "WP GeoNames" version 1.8 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
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 detected2,202 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 23 | 105 | 1,155 |
CSS | 2 | 53 | 24 | 564 |
PO File | 2 | 164 | 172 | 402 |
JavaScript | 2 | 0 | 25 | 81 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 28 | |
▷ Named functions | 28 | 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
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
leaflet/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
leaflet/images/layers.png | 0.68KB | 1.05KB | 0.00% |
images/geonames.png | 10.11KB | 3.80KB | ▼ 62.43% |
leaflet/images/marker-icon.png | 1.43KB | 1.55KB | 0.00% |
images/reload.png | 3.05KB | 0.36KB | ▼ 88.09% |