Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.90ms] Passed 4 tests
An overview of server-side resources used by WP Geo Based Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.55 ▼3.99 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.20 ▼3.15 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.31 ▲3.87 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.10 ▼4.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.35 ▲0.35 |
WP GEO /wp-admin/admin.php?page=wpgeo-campaigns | 3.25 | 30.08 |
Add New Geo Shortcode /wp-admin/admin.php?page=wpgeo-campaigns&action=add | 3.28 | 37.99 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wpgeo_banners |
wp_wpgeo_campaign |
New WordPress options |
---|
wpgeo_version |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Geo Based Content
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.23 ▼1.16 | 1.56 ▼0.35 | 38.99 ▼6.49 |
Dashboard /wp-admin | 2,238 ▲50 | 4.82 ▼1.00 | 109.77 ▲3.73 | 39.64 ▼6.75 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.01 ▼0.00 | 39.04 ▲5.06 | 35.04 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.45 ▲4.88 | 668.27 ▲67.23 | 62.21 ▲14.53 |
Media Library /wp-admin/upload.php | 1,417 ▲32 | 4.21 ▲0.01 | 98.44 ▼0.55 | 44.68 ▼1.03 |
WP GEO /wp-admin/admin.php?page=wpgeo-campaigns | 861 | 2.06 | 25.00 | 26.37 |
Add New Geo Shortcode /wp-admin/admin.php?page=wpgeo-campaigns&action=add | 2,833 | 6.57 | 128.41 | 119.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 9× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-geo-based-content/includes/class-admin.php
- > /wp-content/plugins/wp-geo-based-content/includes/class-model.php
- > /wp-content/plugins/wp-geo-based-content/core/wpgeo_content-class.php
- > /wp-content/plugins/wp-geo-based-content/includes/views/admin/form.php
- > /wp-content/plugins/wp-geo-based-content/index.php
- > /wp-content/plugins/wp-geo-based-content/wp-geo-based-content.php
- > /wp-content/plugins/wp-geo-based-content/core/config.php
- > /wp-content/plugins/wp-geo-based-content/includes/class-public.php
- > /wp-content/plugins/wp-geo-based-content/includes/index.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-geo-based-content/includes/views/admin/lists.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpgeo-campaigns&action=add
- > Network (severe)
wp-content/plugins/wp_geo_based_content/includes/css/wpgeo-admin-style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpgeo-campaigns&action=add
- > Network (severe)
wp-content/plugins/wp_geo_based_content/includes/js/ZeroClipboard.min.js?ver=2.2.0 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpgeo-campaigns&action=add
- > Network (severe)
wp-content/plugins/wp_geo_based_content/includes/js/wpgeo-admin-main.js?ver=1.07 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-geo-based-content ===
)
wp-geo-based-content/wp-geo-based-content.php Passed 13 tests
The main file in "WP Geo Based Content" v. 1.07 serves as a complement to information provided in readme.txt and as the entry point to the plugin
96 characters long description:
This plugin let you display different content for different audience based on their geo location
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin940 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 162 | 78 | 847 |
CSS | 1 | 16 | 1 | 63 |
JavaScript | 2 | 11 | 13 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.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 | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
There are no PNG files in this plugin