Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/niz-ajax-load-more-products-for-woocommerce/inc/class.niz-dependency-checker.php+25
Undefined variable: _message
Server metrics [RAM: ▼1.88MB] [CPU: ▼49.12ms] Passed 4 tests
A check of server-side resources used by Niz Ajax Load More Products for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 6.22 ▼33.65 |
Dashboard /wp-admin | 2.12 ▼1.18 | 6.55 ▼43.40 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 7.21 ▼39.18 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.76 | 7.24 ▼80.23 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.84 ▼27.23 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Niz Ajax Load More Products for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲58 | 13.18 ▼1.57 | 4.42 ▲2.14 | 41.33 ▼4.25 |
Dashboard /wp-admin | 2,221 ▲33 | 5.84 ▲0.80 | 104.96 ▼14.72 | 38.76 ▼4.42 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.01 ▼0.00 | 34.45 ▲0.13 | 35.26 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.09 ▲5.55 | 658.57 ▼38.16 | 50.04 ▼4.41 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.20 ▼0.03 | 94.26 ▼6.81 | 44.61 ▲3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/niz-ajax-load-more-products-for-woocommerce/inc/class.niz-dependency-checker.php+25
Undefined variable: _message
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/niz-ajax-load-more-products-for-woocommerce/niz_woo_ajax_loadmore.php
- > /wp-content/plugins/niz-ajax-load-more-products-for-woocommerce/inc/class.niz-dependency-checker.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _n() in wp-content/plugins/niz-ajax-load-more-products-for-woocommerce/templates/result-count.php:5
- > PHP Notice
Undefined variable: total in wp-content/plugins/niz-ajax-load-more-products-for-woocommerce/templates/result-count.php on line 3
- > PHP Notice
Undefined variable: per_page in wp-content/plugins/niz-ajax-load-more-products-for-woocommerce/templates/result-count.php on line 3
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% 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
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Ajax Loading on the Shop page), #2 (Ajax Loading with shortcode), #3 (Admin configuration page)
niz-ajax-load-more-products-for-woocommerce/niz_woo_ajax_loadmore.php 77% from 13 tests
The entry point to "Niz Ajax Load More Products for Woocommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to 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
- Domain Path: The domain path folder does not exist ("/languages/")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("niz-ajax-load-more-products-for-woocommerce.php" instead of "niz_woo_ajax_loadmore.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin435 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 99 | 64 | 350 |
JavaScript | 2 | 9 | 0 | 61 |
CSS | 1 | 0 | 0 | 24 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 4 | 14.29% |
▷ Public methods | 24 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 14.29% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin