Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▲263.65ms] 75% from 4 tests
This is a short check of server-side resources used by NP Forex Commodity Widget
Please have a look at the following items
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 263.65ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 314.09 ▲270.94 |
Dashboard /wp-admin | 3.50 ▲0.19 | 320.70 ▲271.66 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 383.41 ▲331.45 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 351.26 ▲260.09 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 287.28 ▲251.92 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_fuel-widget |
db_upgraded |
widget_recent-comments |
widget_commodity-widget |
widget_recent-posts |
widget_ex-rates-widget |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by NP Forex Commodity Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,875 ▲140 | 13.83 ▼0.54 | 7.59 ▲5.83 | 38.49 ▼6.44 |
Dashboard /wp-admin | 2,206 ▲15 | 5.88 ▲0.98 | 104.18 ▼9.97 | 39.28 ▼5.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.02 | 39.16 ▼4.91 | 34.96 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 21.11 ▼2.33 | 632.54 ▲6.79 | 64.59 ▲17.38 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.14 ▼0.10 | 89.84 ▼8.36 | 41.17 ▼1.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 9 options
- widget_recent-posts
- widget_recent-comments
- widget_ex-rates-widget
- widget_fuel-widget
- db_upgraded
- theysaidso_admin_options
- widget_commodity-widget
- widget_theysaidso_widget
- can_compress_scripts
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 | 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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/np-forex-commodity-widget/inc/nfcw-fuel-price.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/np-forex-commodity-widget/inc/nfcw-commodity-price.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/np-forex-commodity-widget/inc/nfcw-ex-rates.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% 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
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #4, #5 in np-forex-commodity-widget/assets to your readme.txt
np-forex-commodity-widget/nfcw-commodity-widget.php 69% from 13 tests
The main PHP file in "NP Forex Commodity Widget" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("np-forex-commodity-widget.php" instead of "nfcw-commodity-widget.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Description: Keep the plugin description shorter than 140 characters (currently 156 characters long)
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 plugin894 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 93 | 52 | 448 |
SVG | 21 | 0 | 0 | 292 |
CSS | 2 | 17 | 0 | 80 |
Markdown | 1 | 32 | 0 | 62 |
JavaScript | 1 | 6 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.40 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
PNG images were not found in this plugin