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.00MB] [CPU: ▼4.02ms] Passed 4 tests
Analyzing server-side resources used by Change number of products displayed per page for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.19 ▼7.90 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.11 ▼2.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.68 ▼1.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.01 ▼4.85 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.29 ▲1.54 |
Number of Products Per Page /wp-admin/admin.php?page=change-number-products-per-page | 3.23 | 29.05 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Change number of products displayed per page for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.17 | 1.74 ▼0.20 | 42.53 ▼4.19 |
Dashboard /wp-admin | 2,206 ▲18 | 5.81 ▲0.90 | 99.14 ▲0.20 | 38.04 ▼6.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 39.30 ▼0.70 | 34.06 ▼1.45 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.59 ▲0.29 | 640.73 ▲14.29 | 52.81 ▼3.74 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.25 ▲0.04 | 95.33 ▼5.86 | 41.23 ▼1.11 |
Number of Products Per Page /wp-admin/admin.php?page=change-number-products-per-page | 790 | 2.05 | 24.60 | 23.88 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=change-number-products-per-page
- > Notice in wp-content/plugins/change-number-products-per-page/includes/change-number-products-per-page-acp-page.php+11
Undefined index: add_opt_submit
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
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/change-number-products-per-page/includes/cnpppw-functions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/change-number-products-per-page/includes/change-number-products-per-page-acp-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/change-number-products-per-page/change-number-products-per-page.php:27
- > 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 Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: products, number of products, shop page, modify number of products, products per page...
change-number-products-per-page/change-number-products-per-page.php 85% from 13 tests
The main PHP file in "Change number of products displayed per page for WooCommerce" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: Prefix the domain path with a forward slash character ("/")
- Domain Path: The domain path should use only dashes and lowercase characters ("")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected73 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 42 | 28 | 73 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
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 | 3 | |
▷ Named functions | 3 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin