Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.65ms] Passed 4 tests
A check of server-side resources used by WP Real IP-based Access Control
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 36.69 ▼0.43 |
Dashboard /wp-admin | 3.34 ▼0.01 | 48.47 ▼15.81 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.99 ▲1.83 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.73 ▼26.39 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.38 ▲0.03 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
acl_ctrl_addr |
widget_recent-posts |
widget_recent-comments |
acl_ctrl_mode |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Real IP-based Access Control
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼1.06 | 1.80 ▲0.15 | 42.88 ▲3.21 |
Dashboard /wp-admin | 2,207 ▲19 | 5.97 ▲1.08 | 98.17 ▼10.85 | 39.81 ▼4.51 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▲0.00 | 41.46 ▲6.83 | 38.23 ▲5.87 |
Add New Post /wp-admin/post-new.php | 1,536 ▼0 | 23.09 ▲0.00 | 644.10 ▼12.80 | 56.10 ▲3.25 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▲0.02 | 95.04 ▼1.13 | 43.57 ▲0.77 |
WP Real IP-based ACL /wp-admin/get-real-ip-admin.php | 26 | 0.44 | 0.13 | 13.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-real-ip-based-access-control/get-real-ip-admin.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-real-ip-based-access-control/get-real-ip.php:101
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/get-real-ip-admin.php
- > Network (severe)
wp-admin/get-real-ip-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Admin Panel) image not found
wp-real-ip-based-access-control/get-real-ip.php 85% from 13 tests
The entry point to "WP Real IP-based Access Control" version 1.3.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 157 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-real-ip-based-access-control.php" instead of "get-real-ip.php")
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
Success! There were no dangerous files found in this plugin173 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 15 | 30 | 126 |
PO File | 1 | 13 | 13 | 47 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 10 | |
▷ Named functions | 10 | 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
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 27.42KB | 14.78KB | ▼ 46.11% |
screenshot-1.png | 51.06KB | 23.01KB | ▼ 54.93% |