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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.46ms] Passed 4 tests
An overview of server-side resources used by Wp Restricted
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.92 ▼8.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.58 ▼4.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.57 ▼1.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 100.46 ▲5.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.80 ▲4.66 |
Wp Restricted /wp-admin/options-general.php?page=wprestricted_manage | 3.17 | 33.24 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp Restricted
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.40 ▼0.39 | 2.02 ▲0.12 | 41.84 ▼3.79 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▲0.00 | 106.09 ▼15.24 | 36.82 ▼3.80 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.04 ▲0.06 | 33.39 ▼7.71 | 32.61 ▼3.77 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.42 ▼5.75 | 614.69 ▼80.78 | 55.00 ▼6.91 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▼0.08 | 100.83 ▼7.14 | 44.45 ▼4.09 |
Wp Restricted /wp-admin/options-general.php?page=wprestricted_manage | 813 | 2.03 | 23.66 | 23.77 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wprestricted_manage
- > Warning in wp-content/plugins/wp-restricted/wp-restricted.php+59
gethostbyaddr(): Address is not a valid IPv4 or IPv6 address
SRP 50% 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-restricted/wp-restricted.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: ban, denied, ip, banned, permission...
wp-restricted/wp-restricted.php Passed 13 tests
Analyzing the main PHP file in "Wp Restricted" version 0.2
101 characters long description:
This plugin is restricted all ip except one ip . if you want open wp admin with particular single IP.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected94 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 10 | 94 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected