Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.12MB] [CPU: ▼7.65ms] Passed 4 tests
This is a short check of server-side resources used by IP Address Approval
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.62 | 22.31 ▼14.32 |
Dashboard /wp-admin | 3.36 ▲0.05 | 44.46 ▼3.96 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 42.03 ▼0.52 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.30 ▼11.80 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.27 ▲2.41 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for IP Address Approval
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.35 ▲0.06 | 1.54 ▼0.02 | 36.45 ▼4.01 |
Dashboard /wp-admin | 2,228 ▲48 | 5.58 ▼0.02 | 82.19 ▼3.79 | 35.68 ▼11.58 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.02 ▲0.04 | 38.13 ▼0.26 | 33.52 ▼5.28 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.47 ▼5.14 | 615.47 ▼49.64 | 64.15 ▲4.11 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.22 ▲0.01 | 95.43 ▲1.39 | 41.43 ▼3.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ip-address-approval/ip-approval.php 85% from 13 tests
This is the main PHP file of "IP Address Approval" version 1.8.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("ip-address-approval.php" instead of "ip-approval.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin5,283 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 275 | 187 | 3,449 |
CSS | 1 | 128 | 49 | 1,369 |
JavaScript | 3 | 38 | 87 | 437 |
SVG | 2 | 0 | 1 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 18.42 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 10 | 9.35% |
▷ Public methods | 95 | 88.79% |
▷ Protected methods | 1 | 0.93% |
▷ Private methods | 11 | 10.28% |
Functions | 6 | |
▷ Named functions | 6 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/searchicon.png | 0.84KB | 0.46KB | ▼ 45.23% |