Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.26ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Plugin for PHC FX
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.48 ▲0.30 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.68 ▼2.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.81 ▼9.64 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.37 ▼10.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.66 ▼2.40 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Plugin for PHC FX
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.29 ▲0.02 | 1.80 ▲0.17 | 46.23 ▲4.00 |
Dashboard /wp-admin | 2,198 ▲21 | 5.70 ▲0.05 | 90.27 ▼0.38 | 39.78 ▼0.39 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.05 | 36.05 ▼4.53 | 36.21 ▼1.18 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.25 ▼0.10 | 692.97 ▲27.12 | 65.65 ▲12.60 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.23 ▲0.00 | 106.93 ▼2.67 | 48.11 ▲3.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/phc-fx-woocommerce/phcfx-woocommerce-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/phc-fx-woocommerce/settings/backend.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/phc-fx-woocommerce/settings/import-products.php:3
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (List of All Products), #2 (Initialize plugin and login), #3 (Configurations of plugin)
phc-fx-woocommerce/phcfx-woocommerce.php 92% from 13 tests
The main PHP file in "WooCommerce Plugin for PHC FX" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("phc-fx-woocommerce.php" instead of "phcfx-woocommerce.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin5,005 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 442 | 600 | 4,003 |
CSS | 2 | 14 | 37 | 508 |
JavaScript | 2 | 36 | 47 | 494 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 151)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 647.00 |
▷ Minimum class complexity | 647.00 |
▷ Maximum class complexity | 647.00 |
Average method complexity | 12.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 151.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 | 56 | |
▷ Static methods | 1 | 1.79% |
▷ Public methods | 54 | 96.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.57% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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.25MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 69.63KB | 37.16KB | ▼ 46.64% |
images/logo_phcfx.png | 47.14KB | 16.72KB | ▼ 64.53% |
images/update.png | 0.29KB | 0.26KB | ▼ 12.08% |
screenshot-2.png | 68.25KB | 38.23KB | ▼ 43.99% |
images/plus.png | 0.27KB | 0.16KB | ▼ 41.24% |