Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.79MB] [CPU: ▼54.71ms] Passed 4 tests
A check of server-side resources used by ForTrader widgets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 4.95 ▼39.34 |
Dashboard /wp-admin | 2.21 ▼1.09 | 6.32 ▼44.23 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 6.38 ▼40.80 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.67 | 7.67 ▼94.46 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 7.01 ▼30.29 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 55 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_ft_informers |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_ft_informer_widget |
jal_db_version |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by ForTrader widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 13.24 ▼1.16 | 1.95 ▼0.08 | 45.18 ▲0.51 |
Dashboard /wp-admin | 2,221 ▲33 | 5.95 ▲1.08 | 109.33 ▲3.85 | 71.37 ▲32.73 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.98 ▼0.08 | 39.54 ▲4.54 | 36.36 ▲1.85 |
Add New Post /wp-admin/post-new.php | 1,690 ▲160 | 24.41 ▲1.07 | 665.22 ▼13.29 | 56.79 ▼0.62 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.14 ▼0.06 | 103.65 ▼7.87 | 45.59 ▼2.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- Zombie tables were found after uninstall: 1 table
- wp_ft_informers
- Zombie WordPress options detected upon uninstall: 8 options
- jal_db_version
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_ft_informer_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fortrader-informers/views/addEdit.php
- > /wp-content/plugins/fortrader-informers/views/list.php
- 31× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fortrader-informers/includes/Widget.php:3
- > PHP Notice
Undefined variable: informerTitleText in wp-content/plugins/fortrader-informers/views/addEdit.php on line 11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/fortrader-informers/includes/InformersListTable.php on line 4
- > PHP Notice
Undefined variable: backToList in wp-content/plugins/fortrader-informers/views/addEdit.php on line 6
- > PHP Notice
Undefined variable: createnonce in wp-content/plugins/fortrader-informers/views/addEdit.php on line 65
- > PHP Notice
Undefined variable: tableContents in wp-content/plugins/fortrader-informers/views/list.php on line 4
- > PHP Notice
Undefined variable: mode in wp-content/plugins/fortrader-informers/views/addEdit.php on line 68
- > PHP Notice
Undefined variable: jsTexts in wp-content/plugins/fortrader-informers/views/addEdit.php on line 63
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/fortrader-informers/includes/InformersListTable.php on line 4
- > PHP Notice
Undefined variable: backUrl in wp-content/plugins/fortrader-informers/views/addEdit.php on line 70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (ForTrader widgets manage page), #2 (ForTrader widgets edit page), #3 (Ft Widget)
fortrader-informers/fortrader-informers.php Passed 13 tests
The principal PHP file in "ForTrader widgets" v. 0.1 is loaded by WordPress automatically on each request
38 characters long description:
Add financial widgets to your website.
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
Everything looks great! No dangerous files found in this plugin3,292 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 143 | 85 | 1,682 |
PHP | 8 | 135 | 10 | 800 |
PO File | 3 | 207 | 242 | 411 |
CSS | 8 | 38 | 26 | 399 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 23.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 12 | 24.49% |
▷ Public methods | 41 | 83.67% |
▷ Protected methods | 2 | 4.08% |
▷ Private methods | 6 | 12.24% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.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
25 PNG files occupy 0.47MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 49.23KB | 21.27KB | ▼ 56.79% |
assets/screenshot-2.png | 95.70KB | 43.66KB | ▼ 54.38% |
assets/img/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/img/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
assets/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |