Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/admin-allow-by-ip/includes/class-admin-allow-by-ip.php+173
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.87MB] [CPU: ▼31.32ms] Passed 4 tests
Server-side resources used by Admin Allow by IP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 36.90 ▼2.10 |
Dashboard /wp-admin | 3.08 ▼0.23 | 24.24 ▼23.78 |
Posts /wp-admin/edit.php | 3.08 ▼0.28 | 25.12 ▼19.22 |
Add New Post /wp-admin/post-new.php | 3.08 ▼2.81 | 23.87 ▼66.68 |
Media Library /wp-admin/upload.php | 3.08 ▼0.15 | 21.73 ▼15.58 |
Admin block /wp-admin/options-general.php?page=abbi_options | 3.08 | 25.81 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
abbi_options_advanced_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Admin Allow by IP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲119 | 13.56 ▼1.08 | 7.25 ▲5.39 | 42.16 ▼3.32 |
Dashboard /wp-admin | 2,203 ▲29 | 5.58 ▼0.04 | 92.07 ▼2.51 | 36.94 ▼6.44 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.00 ▼0.02 | 38.54 ▲0.67 | 34.76 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.10 ▼0.08 | 653.56 ▲12.88 | 65.57 ▲12.11 |
Media Library /wp-admin/upload.php | 1,405 ▲11 | 4.20 ▲0.02 | 97.50 ▲0.44 | 40.09 ▼2.77 |
Admin block /wp-admin/options-general.php?page=abbi_options | 861 | 1.99 | 22.02 | 26.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin did not uninstall successfully, leaving 7 options in the database
- abbi_options_advanced_options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- 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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=abbi_options
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=abbi_options
- > Notice in wp-content/plugins/admin-allow-by-ip/admin/class-admin-allow-by-ip-settings.php+304
Undefined index: direction_option
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/admin-allow-by-ip/public/partials/admin-allow-by-ip-public-display.php
- > /wp-content/plugins/admin-allow-by-ip/admin/partials/admin-allow-by-ip-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Requires php: Invalid version format
admin-allow-by-ip/admin-allow-by-ip.php Passed 13 tests
The primary PHP file in "Admin Allow by IP" version 1.0.2 is used by WordPress to initiate all plugin functionality
107 characters long description:
Protect you wp-admin from hackers! You can allow wp-admin for specific IP(s). make sure you have static 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
Success! There were no dangerous files found in this plugin514 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 258 | 651 | 460 |
Markdown | 1 | 20 | 0 | 48 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
Analyzing 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.20 |
Average class complexity | 4.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 33 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.38% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin