Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-geoloc/includes/widget-search.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; wpgeoloc_search_widget has a deprecated constructor
Server metrics [RAM: ▼1.80MB] [CPU: ▼190.86ms] Passed 4 tests
Analyzing server-side resources used by WP Geoloc
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼0.89 | 6.20 ▼27.30 |
Dashboard /wp-admin | 1.85 ▼1.21 | 7.12 ▼37.48 |
Posts /wp-admin/edit.php | 1.85 ▼1.26 | 6.94 ▼41.55 |
Add New Post /wp-admin/post-new.php | 1.85 ▼3.59 | 7.64 ▼653.17 |
Media Library /wp-admin/upload.php | 1.85 ▼1.15 | 7.03 ▼31.22 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_geodatastore |
New WordPress options |
---|
sc_gds_db_version |
widget_wpgeoloc-search |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Geoloc
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲232 | 16.22 ▲0.38 | 10.76 ▲0.66 | 47.89 ▼1.24 |
Dashboard /wp-admin | 2,989 ▲58 | 5.91 ▼0.04 | 173.60 ▲23.60 | 116.33 ▼0.41 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.69 ▲0.00 | 72.85 ▼1.05 | 97.75 ▲9.44 |
Add New Post /wp-admin/post-new.php | 5,815 ▲4,132 | 19.92 ▲1.16 | 566.26 ▲159.03 | 110.92 ▼4.29 |
Media Library /wp-admin/upload.php | 1,830 ▲20 | 5.03 ▲0.02 | 155.72 ▲5.25 | 129.47 ▲6.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/wp-geoloc/includes/widget-search.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; wpgeoloc_search_widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_geodatastore
- This plugin did not uninstall successfully, leaving 2 options in the database
- sc_gds_db_version
- widget_wpgeoloc-search
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-geoloc ===
) - Tags: You are using too many tags: 16 tag instead of maximum 10
wp-geoloc/wp-geoloc.php 85% from 13 tests
The main file in "WP Geoloc" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected752 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 143 | 191 | 552 |
CSS | 1 | 6 | 0 | 156 |
PO File | 1 | 13 | 16 | 43 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 13 | 81.25% |
▷ Public methods | 14 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 12.50% |
Functions | 13 | |
▷ Named functions | 13 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin