Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.33ms] Passed 4 tests
A check of server-side resources used by Category Related Products for iThemes Exchange
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.69 ▼5.23 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.73 ▲0.50 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.65 ▲2.15 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.50 ▼10.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.28 ▲2.75 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Category Related Products for iThemes Exchange
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.16 | 1.69 ▼0.15 | 39.50 ▼4.05 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼0.04 | 103.76 ▲0.16 | 37.92 ▼1.72 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.06 ▲0.04 | 39.28 ▼0.81 | 36.38 ▲0.95 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.71 ▼0.56 | 687.10 ▲71.02 | 54.90 ▼4.18 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▼0.01 | 107.15 ▼0.37 | 48.46 ▼2.08 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-related-products-for-ithemes-exchange/lib/settings.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/category-related-products-for-ithemes-exchange/init.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-related-products-for-ithemes-exchange/exchange-addon-category-related-products.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-related-products-for-ithemes-exchange/lib/hooks.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: ithemes exchange, ecommerce, addon
category-related-products-for-ithemes-exchange/exchange-addon-category-related-products.php 92% from 13 tests
Analyzing the main PHP file in "Category Related Products for iThemes Exchange" version 1.0.2
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("category-related-products-for-ithemes-exchange.php" instead of "exchange-addon-category-related-products.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin260 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 46 | 107 | 220 |
CSS | 2 | 5 | 0 | 40 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/images/icon.png | 0.98KB | 0.59KB | ▼ 39.96% |