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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.25ms] Passed 4 tests
Server-side resources used by WP Show Site by IP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 45.08 ▲2.03 |
Dashboard /wp-admin | 3.38 ▲0.07 | 53.51 ▼2.36 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 53.35 ▼6.40 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 99.67 ▼7.91 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.13 ▼0.33 |
Show Site by IP /wp-admin/tools.php?page=wssbi | 3.34 | 43.59 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
wssbi_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Show Site by IP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.75 ▲0.41 | 1.66 ▼0.19 | 41.69 ▲1.23 |
Dashboard /wp-admin | 2,213 ▲39 | 5.64 ▼0.03 | 84.87 ▼5.02 | 42.56 ▼3.86 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.02 ▲0.06 | 40.52 ▼0.34 | 38.17 ▼4.10 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.55 ▲0.44 | 622.59 ▼69.83 | 65.33 ▲3.28 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.18 ▲0.06 | 96.92 ▼17.99 | 43.51 ▼1.58 |
Show Site by IP /wp-admin/tools.php?page=wssbi | 2,061 | 8.79 | 216.12 | 59.00 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- wssbi_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_user_meta() in wp-content/plugins/wp-show-site-by-ip/inc/help-pointer.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-show-site-by-ip/inc/settings-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-show-site-by-ip/inc/old-html-thickbox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-show-site-by-ip/inc/settings-sidebar.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-show-site-by-ip/inc/old-html-notice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/wp-show-site-by-ip/inc/help-screens.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/wp-show-site-by-ip/parts/temp-page-tpl.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-show-site-by-ip/inc/settings-form.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=wssbi
- > Console-api (warning) in wp-content/plugins/wp-show-site-by-ip/lib/ace-1.2.5/src-min-noconflict/ace.js?ver=6.3.1+0:51505
Automatically scrolling cursor into view after selection change" "this will be disabled in the next version" "set editor.$blockScrolling = Infinity to disable this message
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: hide website, maintenance, ip filter
wp-show-site-by-ip/wp-show-site-by-ip.php Passed 13 tests
The primary PHP file in "WP Show Site by IP" version 2.3.3 is used by WordPress to initiate all plugin functionality
89 characters long description:
Hide the website to unknown IPs and show a temporary and fully customizable page instead.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,304 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 60 | 30 | 491 |
CSS | 2 | 52 | 26 | 370 |
PO File | 1 | 78 | 78 | 291 |
JavaScript | 7 | 15 | 10 | 119 |
Markdown | 1 | 12 | 0 | 17 |
HTML | 2 | 10 | 21 | 16 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin