Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.88MB] [CPU: ▼39.18ms] Passed 4 tests
A check of server-side resources used by DMD Infinite Scroll
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.10 ▼0.36 | 17.65 ▼21.49 |
Dashboard /wp-admin | 3.15 ▼0.20 | 18.87 ▼40.23 |
Posts /wp-admin/edit.php | 3.15 ▼0.21 | 18.91 ▼27.29 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 20.61 ▼67.72 |
Media Library /wp-admin/upload.php | 3.15 ▼0.08 | 19.84 ▼14.63 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by DMD Infinite Scroll
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,072 ▲326 | 13.67 ▼1.09 | 8.93 ▲7.26 | 46.35 ▲5.66 |
Dashboard /wp-admin | 2,237 ▲52 | 4.90 ▲0.04 | 111.22 ▲11.05 | 85.72 ▲39.00 |
Posts /wp-admin/edit.php | 2,123 ▲37 | 2.05 ▲0.05 | 35.13 ▼1.37 | 31.74 ▲0.12 |
Add New Post /wp-admin/post-new.php | 1,697 ▲183 | 22.84 ▲5.11 | 743.83 ▲59.47 | 57.49 ▼0.70 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.24 ▲0.08 | 103.97 ▼0.30 | 46.20 ▲0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/dmd-infinite-scroll/dmd-infinite-scroll.php+1090
Undefined index: 0wc_result_count
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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 | 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 fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dmd-infinite-scroll/includes/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dmd-infinite-scroll/dmd-infinite-scroll.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
5 plugin tags: load more buttons, ajax pagination, wordpress infinite scroll, woocommerce infinite scroll, infinite scroll
dmd-infinite-scroll/dmd-infinite-scroll.php Passed 13 tests
The primary PHP file in "DMD Infinite Scroll" version 0.9.1 is used by WordPress to initiate all plugin functionality
45 characters long description:
Infinite Scroll for WordPress and WooCommerce
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
Success! There were no dangerous files found in this plugin3,611 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 19 | 10 | 1,772 |
SVG | 1 | 0 | 0 | 655 |
JavaScript | 4 | 0 | 1 | 598 |
CSS | 5 | 6 | 10 | 586 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 66.50 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 6.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 21 | 91.30% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/settings_assets/dmdico.png | 15.41KB | 0.97KB | ▼ 93.71% |