Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.66MB] [CPU: ▼14.48ms] Passed 4 tests
Server-side resources used by Precious Metals Charts and Widgets for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.27 ▼2.91 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.82 ▼4.78 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.03 ▲2.89 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.76 | 33.35 ▼50.08 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.01 ▼0.14 |
All nFusion Widgets /wp-admin/edit.php?post_type=nfusion-widgets | 3.30 | 37.15 |
Add New /wp-admin/post-new.php?post_type=nfusion-widgets | 3.12 | 32.69 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_netgo_nfusion |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Precious Metals Charts and Widgets for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲204 | 13.90 ▼0.52 | 8.17 ▲6.38 | 39.11 ▼9.48 |
Dashboard /wp-admin | 2,238 ▲50 | 4.86 ▼0.21 | 99.28 ▼5.05 | 41.09 ▲0.61 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.00 ▼0.01 | 37.70 ▲4.20 | 29.81 ▼9.53 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 23.30 ▲5.56 | 633.53 ▲26.25 | 51.47 ▲1.11 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.28 ▲0.09 | 100.72 ▲0.03 | 39.89 ▼4.13 |
All nFusion Widgets /wp-admin/edit.php?post_type=nfusion-widgets | 1,079 | 1.93 | 32.40 | 28.18 |
Add New /wp-admin/post-new.php?post_type=nfusion-widgets | 1,548 | 2.62 | 48.75 | 47.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_netgo_nfusion
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=nfusion-widgets
- > Notice in wp-content/plugins/precious-metals-chart-and-widgets/wp-nFusion-Widgets.php+149
Undefined index: post_type
- > GET request to /wp-admin/post-new.php?post_type=nfusion-widgets
- > Notice in wp-content/plugins/precious-metals-chart-and-widgets/wp-nFusion-Widgets.php+158
Undefined index: nfusion_chart_code
- > GET request to /wp-admin/post-new.php?post_type=nfusion-widgets
- > Notice in wp-content/plugins/precious-metals-chart-and-widgets/wp-nFusion-Widgets.php+161
Undefined index: nfusion_parameters
- > GET request to /wp-admin/post-new.php?post_type=nfusion-widgets
- > Notice in wp-content/plugins/precious-metals-chart-and-widgets/wp-nFusion-Widgets.php+164
Undefined index: nfusion_full_fidth
- > GET request to /wp-admin/post-new.php?post_type=nfusion-widgets
- > Notice in wp-content/plugins/precious-metals-chart-and-widgets/wp-nFusion-Widgets.php+167
Undefined index: nfusion_fixed_width
- > GET request to /wp-admin/post-new.php?post_type=nfusion-widgets
- > Notice in wp-content/plugins/precious-metals-chart-and-widgets/wp-nFusion-Widgets.php+123
Undefined variable: selected1
- > GET request to /wp-admin/post-new.php?post_type=nfusion-widgets
- > Notice in wp-content/plugins/precious-metals-chart-and-widgets/wp-nFusion-Widgets.php+124
Undefined variable: selected2
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/precious-metals-chart-and-widgets/wp-nFusion-Widgets.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
precious-metals-chart-and-widgets/wp-nFusion-Widgets.php 92% from 13 tests
"Precious Metals Charts and Widgets for WordPress" version 1.2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("precious-metals-chart-and-widgets.php" instead of "wp-nFusion-Widgets.php")
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
No dangerous file extensions were detected382 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 76 | 21 | 360 |
JavaScript | 1 | 2 | 0 | 17 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin