84% powies-whois

Code Review | Powie's WHOIS Domain Check

WordPress plugin Powie's WHOIS Domain Check scored84%from 54 tests.

About plugin

  • Plugin page: powies-whois
  • Plugin version: 0.9.33
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Nov 3, 2022
  • Number of updates: 50
  • Update frequency: every 64.4 days
  • Top authors: PowieT (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

900+ active /26,512 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Powie's WHOIS Domain Check
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.63 ▼6.71
Dashboard /wp-admin3.32 ▲0.0245.63 ▼3.91
Posts /wp-admin/edit.php3.37 ▲0.0146.91 ▼7.84
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.57 ▼17.70
Media Library /wp-admin/upload.php3.24 ▲0.0142.26 ▲2.44
Powie's WHOIS Setup /wp-admin/options-general.php?page=powies-whois/pwhois_settings.php3.2638.63

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
display-on-connect
display-on-free
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Powie's WHOIS Domain Check
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.41 ▼0.838.57 ▲6.8742.34 ▼5.25
Dashboard /wp-admin2,199 ▲215.57 ▼0.1491.48 ▼14.5539.86 ▼3.26
Posts /wp-admin/edit.php2,107 ▲72.01 ▲0.0133.73 ▼5.1032.86 ▼1.59
Add New Post /wp-admin/post-new.php1,529 ▲322.91 ▼0.14657.53 ▼13.9266.54 ▲17.13
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.0195.65 ▼23.7444.86 ▼2.59
Powie's WHOIS Setup /wp-admin/options-general.php?page=powies-whois/pwhois_settings.php1,1103.5073.6841.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • display-on-free
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • display-on-connect
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/powies-whois/powies-whois.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/powies-whois/pwhois_settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: shortcode, lookup, whois, free, domain

powies-whois/powies-whois.php Passed 13 tests

The main PHP file in "Powie's WHOIS Domain Check" ver. 0.9.33 adds more information about the plugin and also serves as the entry point for this plugin
29 characters long description:
Domain WHOIS Shortcode Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin716 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22748392
PO File3110132297
JavaScript12027

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity5.50
▷ Minimum method complexity4.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods150.00%
▷ Protected methods00.00%
▷ Private methods150.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin