84% wp-ip-details-show

Code Review | Wp Ip Details Show

WordPress plugin Wp Ip Details Show scored84%from 54 tests.

About plugin

  • Plugin page: wp-ip-details-show
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.3
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Aug 11, 2015
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: truser (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /822 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.75ms] Passed 4 tests

An overview of server-side resources used by Wp Ip Details Show
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.24 ▼2.03
Dashboard /wp-admin3.32 ▲0.0144.57 ▼8.15
Posts /wp-admin/edit.php3.37 ▲0.0144.34 ▼4.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.25 ▼4.20
Media Library /wp-admin/upload.php3.24 ▲0.0134.30 ▲0.73

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Wp Ip Details Show
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.80 ▲0.421.88 ▼0.1941.93 ▼5.36
Dashboard /wp-admin2,209 ▲244.84 ▼0.19117.02 ▼2.3141.72 ▼5.26
Posts /wp-admin/edit.php2,089 ▲32.04 ▼0.0136.09 ▼0.0333.50 ▼1.51
Add New Post /wp-admin/post-new.php1,545 ▲1218.04 ▼5.23611.19 ▼86.3648.44 ▼2.95
Media Library /wp-admin/upload.php1,391 ▲94.28 ▲0.04106.37 ▲1.8244.59 ▲2.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-ip-details-show/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: wp show, plugin, wp ip details show, widget, ip show...

wp-ip-details-show/index.php 92% from 13 tests

The principal PHP file in "Wp Ip Details Show" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-ip-details-show.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12935

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 were not PNG files found in your plugin