Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼140.91ms] Passed 4 tests
A check of server-side resources used by Custom Link Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 47.53 ▲12.47 |
Dashboard /wp-admin | 3.08 ▲0.03 | 56.35 ▲6.98 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 47.65 ▼2.53 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 89.67 ▼570.34 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 38.22 ▲2.26 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_iclw |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Link Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.25 ▲0.43 | 9.64 ▼0.83 | 89.46 ▲38.88 |
Dashboard /wp-admin | 2,970 ▲36 | 6.06 ▲0.12 | 165.46 ▲12.34 | 127.63 ▲3.59 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.82 ▼0.01 | 73.13 ▲7.18 | 100.69 ▼0.49 |
Add New Post /wp-admin/post-new.php | 1,498 ▼185 | 18.81 ▲0.37 | 373.28 ▼36.52 | 117.68 ▲1.83 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.00 ▼0.02 | 156.62 ▲6.13 | 121.76 ▼4.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_iclw
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-link-widget/iCLW.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: widget, widgets, link widget
custom-link-widget/iCLW.php 85% from 13 tests
Analyzing the main PHP file in "Custom Link Widget" version 1.1.1
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-link-widget.php" instead of "iCLW.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 284 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin76 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 9 | 11 | 76 |
PHP code Passed 2 tests
Analyzing 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.16 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin