Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.63ms] Passed 4 tests
Analyzing server-side resources used by Free Products Catalog
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 40.84 ▼0.33 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.33 ▼1.79 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.62 ▲3.44 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 83.10 ▼15.02 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.33 ▲2.64 |
Products /wp-admin/edit.php?post_type=products | 3.36 | 35.81 |
Add New /wp-admin/post-new.php?post_type=products | 3.45 | 50.09 |
Products categories /wp-admin/edit-tags.php?taxonomy=products-cat&post_type=products | 3.32 | 34.51 |
Products tags /wp-admin/edit-tags.php?taxonomy=products-tag&post_type=products | 3.31 | 31.57 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Free Products Catalog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲83 | 13.16 ▼1.46 | 1.70 ▼0.39 | 42.77 ▼2.94 |
Dashboard /wp-admin | 2,255 ▲73 | 5.83 ▼0.05 | 97.05 ▼7.99 | 39.46 ▲3.47 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 2.06 ▲0.09 | 36.59 ▼6.54 | 36.58 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,570 ▲42 | 23.45 ▲0.37 | 643.47 ▼8.93 | 50.84 ▼5.59 |
Media Library /wp-admin/upload.php | 1,437 ▲46 | 4.23 ▼0.02 | 101.60 ▲3.09 | 43.17 ▲1.19 |
Products /wp-admin/edit.php?post_type=products | 1,111 | 2.00 | 30.00 | 29.00 |
Add New /wp-admin/post-new.php?post_type=products | 2,647 | 7.79 | 175.68 | 70.65 |
Products categories /wp-admin/edit-tags.php?taxonomy=products-cat&post_type=products | 1,308 | 2.14 | 25.38 | 27.52 |
Products tags /wp-admin/edit-tags.php?taxonomy=products-tag&post_type=products | 1,283 | 2.13 | 26.25 | 29.46 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/free-products-catalog/templates/archive-no-grid-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/free-products-catalog/templates/archive-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/free-products-catalog/templates/single-product-template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/free-products-catalog/templates/single-product-template-shop.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/free-products-catalog/webites-product-catalog.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== free-products-catalog ===
) - Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in free-products-catalog/assets to your readme.txt
free-products-catalog/webites-product-catalog.php 85% from 13 tests
The main file in "Free Products Catalog" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("free-products-catalog.php" instead of "webites-product-catalog.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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 plugin1,108 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 204 | 50 | 544 |
PO File | 3 | 117 | 156 | 298 |
CSS | 2 | 65 | 6 | 266 |
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.31 |
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 | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.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
5 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/product-card.png | 1.03KB | 0.27KB | ▼ 74.19% |
public/img/test.PNG | 92.32KB | 48.60KB | ▼ 47.35% |
public/img/product-default.png | 1.00KB | 0.27KB | ▼ 73.33% |
public/img/simple.png | 0.83KB | 0.20KB | ▼ 75.98% |
public/img/grid.png | 0.87KB | 0.21KB | ▼ 75.23% |