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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 4.11 ▼39.46 |
Dashboard /wp-admin | 2.22 ▼1.09 | 5.55 ▼41.10 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 6.78 ▼38.72 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 5.45 ▼91.42 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 7.71 ▼22.75 |
Server Information /wp-admin/admin.php?page=iwl_server_info | 2.22 | 6.26 |
Settings /wp-admin/admin.php?page=iwl_settings | 2.22 | 7.28 |
How to Use /wp-admin/admin.php?page=iw-profile/iwl_admin.php | 2.22 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲200 | 13.69 ▼0.69 | 5.56 ▲3.67 | 39.11 ▼3.44 |
Dashboard /wp-admin | 2,239 ▲60 | 4.88 ▼0.97 | 103.04 ▼0.42 | 69.64 ▲23.55 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.00 ▲0.01 | 37.73 ▼1.49 | 34.65 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,695 ▲159 | 22.46 ▼0.55 | 687.41 ▲81.21 | 62.16 ▲13.08 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.18 ▲0.01 | 104.55 ▲4.95 | 80.30 ▲36.00 |
Server Information /wp-admin/admin.php?page=iwl_server_info | 1,042 | 2.02 | 21.96 | 28.28 |
Settings /wp-admin/admin.php?page=iwl_settings | 1,075 | 2.21 | 24.80 | 30.25 |
How to Use /wp-admin/admin.php?page=iw-profile/iwl_admin.php | 1,100 | 2.02 | 22.82 | 33.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 255 | 44 | 1,324 |
SVG | 1 | 0 | 0 | 643 |
JavaScript | 2 | 100 | 115 | 463 |
CSS | 1 | 12 | 5 | 324 |
PO File | 1 | 128 | 130 | 319 |
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 code | 0.31 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/success.png | 1.19KB | 1.18KB | 0.41% |
img/idehweb-logo.png | 16.64KB | 4.64KB | ▼ 72.13% |
img/icon.png | 1.21KB | 0.52KB | ▼ 57.15% |
img/errors.png | 0.78KB | 0.78KB | 0.00% |
img/input.png | 0.12KB | 0.12KB | 0.00% |