Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.46ms] Passed 4 tests
Analyzing server-side resources used by Country or Geo Location Based Page Content
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.09 ▼34.11 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.59 ▼40.63 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.12 ▼42.98 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.58 ▼92.10 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.02 ▼30.03 |
Server storage [IO: ▲0.00MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Country or Geo Location Based Page Content
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲173 | 13.58 ▼1.17 | 9.24 ▲7.56 | 47.10 ▲0.54 |
Dashboard /wp-admin | 2,209 ▲27 | 4.89 ▲0.02 | 107.86 ▲7.42 | 38.72 ▼3.86 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.01 | 38.89 ▼6.22 | 35.03 ▼11.28 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.32 ▼4.67 | 613.24 ▼81.92 | 60.87 ▲14.39 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.25 ▲0.05 | 94.87 ▼2.20 | 43.49 ▼0.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: api, php, wp, geo, mysql
country-or-geo-location-based-page-content/Country-or-Geo-Location-Based-Page-Content.php 77% from 13 tests
The main PHP script in "Country or Geo Location Based Page Content" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path should use only dashes and lowercase characters ("/")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("country-or-geo-location-based-page-content.php" instead of "Country-or-Geo-Location-Based-Page-Content.php")
- Domain Path: Prefix the domain path with a forward slash character ("//")
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 detected34 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 30 | 17 |
JavaScript | 1 | 6 | 2 | 11 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin