Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼8.07ms] Passed 4 tests
Analyzing server-side resources used by C4D Woo Category Product Perpage
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.97 ▼4.56 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.76 ▼4.54 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.52 ▼2.75 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.87 ▼20.43 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.54 ▼1.96 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
C4D Woo Category Product Perpage: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲126 | 13.61 ▼0.74 | 6.86 ▲4.85 | 45.30 ▼6.14 |
Dashboard /wp-admin | 2,203 ▲18 | 4.84 ▼0.04 | 114.49 ▲3.90 | 43.13 ▼1.68 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 35.50 ▼3.73 | 34.70 ▼0.46 |
Add New Post /wp-admin/post-new.php | 1,524 ▲4 | 22.98 ▼0.00 | 631.89 ▼51.80 | 55.74 ▼10.33 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▼0.00 | 98.76 ▼9.81 | 42.26 ▼2.66 |
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
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-woo-category-product-perpage/c4d-woo-category-product-perpage.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_default_products_per_row() in wp-content/plugins/c4d-woo-category-product-perpage/templates/default.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
c4d-woo-category-product-perpage/c4d-woo-category-product-perpage.php 92% from 13 tests
The primary PHP file in "C4D Woo Category Product Perpage" version 2.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin109 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 13 | 9 | 100 |
JavaScript | 2 | 0 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin