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.12MB] [CPU: ▼6.30ms] Passed 4 tests
A check of server-side resources used by RC Geo Access Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.68 ▲2.50 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.24 ▼2.92 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 46.65 ▼8.94 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 89.11 ▼10.82 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.59 ▼2.51 |
RC GEO Access /wp-admin/options-general.php?page=rc_geo_access | 3.30 | 33.09 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by RC Geo Access Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.35 ▼0.42 | 1.65 ▼0.03 | 46.16 ▲0.55 |
Dashboard /wp-admin | 2,205 ▲31 | 5.61 ▼0.02 | 95.21 ▼9.05 | 41.86 ▼5.36 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.16 ▲0.15 | 35.42 ▼4.46 | 34.52 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 18.14 ▼5.05 | 725.71 ▲74.35 | 73.51 ▲19.72 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.17 ▲0.01 | 97.47 ▼9.08 | 42.76 ▼3.24 |
RC GEO Access /wp-admin/options-general.php?page=rc_geo_access | 2,497 | 2.02 | 33.67 | 59.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 29 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rc_geo_access
- > Notice in wp-content/plugins/rc-geo-access/rc-geo-access.php+121
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=rc_geo_access
- > Notice in wp-content/plugins/rc-geo-access/rc-geo-access.php+285
Undefined variable: rc_geo_access_api_key
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rc_geo_access
- > Notice in wp-content/plugins/rc-geo-access/rc-geo-access.php+614
Undefined variable: ch
- > GET request to /wp-admin/options-general.php?page=rc_geo_access
- > Warning in wp-content/plugins/rc-geo-access/rc-geo-access.php+613
curl_exec() expects parameter 1 to be resource, null given
- > GET request to /wp-admin/options-general.php?page=rc_geo_access
- > Warning in wp-content/plugins/rc-geo-access/rc-geo-access.php+614
curl_close() expects parameter 1 to be resource, null given
- > GET request to /wp-admin/options-general.php?page=rc_geo_access
- > Notice in wp-content/plugins/rc-geo-access/rc-geo-access.php+295
Undefined variable: rc_geo_access_country_code
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rc-geo-access/rc-geo-access.php:13
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: login, geolocation, security
rc-geo-access/rc-geo-access.php Passed 13 tests
"RC Geo Access Plugin" version 1.48's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
125 characters long description:
This plugin restricts access to the login page of your WordPress Admin based on the location of the user trying to access it.
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
There were no executable files found in this plugin622 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 203 | 93 | 622 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
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 | 21 | |
▷ Named functions | 21 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin