Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/authorize-ip-address/authorize-ip-address.php+74
Trying to access array offset on value of type null
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.84ms] Passed 4 tests
Server-side resources used by Authorize IP Address
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.15 ▼4.19 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.07 ▼6.02 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.62 ▲1.33 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.35 ▼12.96 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.39 ▼0.18 |
Authorize IP Address /wp-admin/options-general.php?page=authorizeipaddress | 3.26 | 30.81 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
authorizeipaddress |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
authorizeipaddress_ip_whitelist |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Authorize IP Address
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.25 ▼1.13 | 4.40 ▲2.33 | 46.86 ▲2.35 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▼0.02 | 95.02 ▼29.36 | 39.72 ▼4.50 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 1.99 ▼0.00 | 34.69 ▼3.48 | 37.38 ▲4.86 |
Add New Post /wp-admin/post-new.php | 1,535 ▲13 | 23.37 ▲0.23 | 689.34 ▲26.22 | 56.60 ▼0.99 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.17 ▲0.01 | 110.57 ▼0.56 | 50.73 ▲1.99 |
Authorize IP Address /wp-admin/options-general.php?page=authorizeipaddress | 972 | 2.08 | 22.57 | 27.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function home_url() in wp-content/plugins/authorize-ip-address/authorize-ip-address.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/authorize-ip-address/wpaip-options-page.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5 in authorize-ip-address/assets to your readme.txt
authorize-ip-address/authorize-ip-address.php Passed 13 tests
Analyzing the main PHP file in "Authorize IP Address" version 1.0.1
140 characters long description:
Allows users to setup IP whitelists for logging in and sends them an email with an activation key if the IP address is not on the whitelist.
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
Good job! No executable or dangerous file extensions detected373 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 123 | 54 | 373 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 18 | |
▷ Named functions | 18 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin