79% wp-show-site-by-ip

Code Review | WP Show Site by IP

WordPress plugin WP Show Site by IP scored79%from 54 tests.

About plugin

  • Plugin page: wp-show-site-by-ip
  • Plugin version: 2.3.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Sep 18, 2014
  • Latest release: Jul 22, 2023
  • Number of updates: 20
  • Update frequency: every 161.5 days
  • Top authors: d79 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /2,912 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0845.08 ▲2.03
Dashboard /wp-admin3.38 ▲0.0753.51 ▼2.36
Posts /wp-admin/edit.php3.49 ▲0.1353.35 ▼6.40
Add New Post /wp-admin/post-new.php5.96 ▲0.0799.67 ▼7.91
Media Library /wp-admin/upload.php3.30 ▲0.0739.13 ▼0.33
Show Site by IP /wp-admin/tools.php?page=wssbi3.3443.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.75 ▲0.411.66 ▼0.1941.69 ▲1.23
Dashboard /wp-admin2,213 ▲395.64 ▼0.0384.87 ▼5.0242.56 ▼3.86
Posts /wp-admin/edit.php2,118 ▲182.02 ▲0.0640.52 ▼0.3438.17 ▼4.10
Add New Post /wp-admin/post-new.php1,536 ▲1023.55 ▲0.44622.59 ▼69.8365.33 ▲3.28
Media Library /wp-admin/upload.php1,418 ▲184.18 ▲0.0696.92 ▼17.9943.51 ▼1.58
Show Site by IP /wp-admin/tools.php?page=wssbi2,0618.79216.1259.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP96030491
CSS25226370
PO File17878291
JavaScript71510119
Markdown112017
HTML2102116

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 code0.16
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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