10% iw-profile

Code Review | iw profile

WordPress plugin iw profile scored10%from 54 tests.

About plugin

  • Plugin page: iw-profile
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.4.3
  • WordPress version: 6.3.1
  • First release: Mar 24, 2016
  • Latest release: May 27, 2016
  • Number of updates: 33
  • Update frequency: every 1.9 days
  • Top authors: glboy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,111 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/iw-profile/iw-profile.php+247
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_mail_from has a deprecated constructor

Server metrics [RAM: ▼1.79MB] [CPU: ▼52.68ms] Passed 4 tests

This is a short check of server-side resources used by iw profile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.264.11 ▼39.46
Dashboard /wp-admin2.22 ▼1.095.55 ▼41.10
Posts /wp-admin/edit.php2.22 ▼1.146.78 ▼38.72
Add New Post /wp-admin/post-new.php2.22 ▼3.675.45 ▼91.42
Media Library /wp-admin/upload.php2.22 ▼1.017.71 ▼22.75
Server Information /wp-admin/admin.php?page=iwl_server_info2.226.26
Settings /wp-admin/admin.php?page=iwl_settings2.227.28
How to Use /wp-admin/admin.php?page=iw-profile/iwl_admin.php2.226.21

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_iw_profile
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for iw profile
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲20013.69 ▼0.695.56 ▲3.6739.11 ▼3.44
Dashboard /wp-admin2,239 ▲604.88 ▼0.97103.04 ▼0.4269.64 ▲23.55
Posts /wp-admin/edit.php2,122 ▲302.00 ▲0.0137.73 ▼1.4934.65 ▼3.14
Add New Post /wp-admin/post-new.php1,695 ▲15922.46 ▼0.55687.41 ▲81.2162.16 ▲13.08
Media Library /wp-admin/upload.php1,418 ▲304.18 ▲0.01104.55 ▲4.9580.30 ▲36.00
Server Information /wp-admin/admin.php?page=iwl_server_info1,0422.0221.9628.28
Settings /wp-admin/admin.php?page=iwl_settings1,0752.2124.8030.25
How to Use /wp-admin/admin.php?page=iw-profile/iwl_admin.php1,1002.0222.8233.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/iw-profile/iw-profile.php+247
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_mail_from has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_iw_profile
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=iw-profile/iwl_admin.php
    • > Deprecated in wp-content/plugins/iw-profile/iw-profile.php+247
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_mail_from has a deprecated constructor
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=iwl_settings
    • > Warning in wp-content/plugins/iw-profile/admin/settings.php+137
    Use of undefined constant Enabled - assumed 'Enabled' (this will throw an Error in a future version of PHP)

SRP 0% 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 fix the following
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/iw-profile/template/logged-in/order-tracking.php
    • > /wp-content/plugins/iw-profile/include/form.php
    • > /wp-content/plugins/iw-profile/admin/usage.php
    • > /wp-content/plugins/iw-profile/template/after-template.php
  • 23× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iw_login_current_url() in wp-content/plugins/iw-profile/template/login-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iw_login_current_url() in wp-content/plugins/iw-profile/template/register-form.php:2
    • > PHP Fatal error
      require_once(): Failed opening required '/include/form.php' (include_path='.:/usr/share/php') in wp-content/plugins/iw-profile/template/logged-in.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iw-profile/iwl_admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/iw-profile/admin/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/iw-profile/template/logged-in/settings.php:6
    • > PHP Warning
      require_once(/include/form.php): failed to open stream: No such file or directory in wp-content/plugins/iw-profile/template/logged-in.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function iwl_sidebar() in wp-content/plugins/iw-profile/admin/usage.php:103
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/iw-profile/template/logged-in/info.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/iw-profile/template/logged-in.php on line 4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: There are too many tags (22 tag instead of maximum 10)
The official readme.txt is a good inspiration

iw-profile/iw-profile.php 92% from 13 tests

The main file in "iw profile" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 294 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,073 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP19255441,324
SVG100643
JavaScript2100115463
CSS1125324
PO File1128130319

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
9 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/success.png1.19KB1.18KB0.41%
img/idehweb-logo.png16.64KB4.64KB▼ 72.13%
img/icon.png1.21KB0.52KB▼ 57.15%
img/errors.png0.78KB0.78KB0.00%
img/input.png0.12KB0.12KB0.00%