Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.52ms] Passed 4 tests
An overview of server-side resources used by WordPress Ajax Load More and Infinite Scroll
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.77 ▼2.40 |
Dashboard /wp-admin | 3.34 ▼0.01 | 50.45 ▼16.55 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 50.18 ▼1.48 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 95.45 ▼5.64 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.97 ▲1.64 |
CPT Ajax Load more /wp-admin/options-general.php?page=cpt-alm-setting-admin | 3.24 | 34.86 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Ajax Load More and Infinite Scroll
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,647 ▲901 | 15.72 ▲1.34 | 5.23 ▲3.44 | 39.58 ▼3.92 |
Dashboard /wp-admin | 2,966 ▲775 | 6.57 ▲1.71 | 143.14 ▲36.72 | 40.76 ▼0.40 |
Posts /wp-admin/edit.php | 2,855 ▲766 | 2.92 ▲0.91 | 106.71 ▲70.35 | 68.21 ▲30.75 |
Add New Post /wp-admin/post-new.php | 2,115 ▲594 | 23.87 ▲0.85 | 704.48 ▲24.16 | 35.68 ▼20.86 |
Media Library /wp-admin/upload.php | 2,147 ▲759 | 5.92 ▲1.80 | 129.76 ▲12.73 | 42.76 ▼5.39 |
CPT Ajax Load more /wp-admin/options-general.php?page=cpt-alm-setting-admin | 1,629 | 3.23 | 60.91 | 25.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cpt-ajax-load-more/includes/admin/views/shortcode-builder.php
- 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/cpt-ajax-load-more/includes/functions-cpt-alm.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cpt-ajax-load-more/includes/admin/views/shortcode-builder.php:186
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: lazy, load more, scroll, lazy load, infinite...
cpt-ajax-load-more/cpt-ajax-load-more.php Passed 13 tests
"WordPress Ajax Load More and Infinite Scroll" version 1.6.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
The simple way to load custom post type with infinite scroll or load more button.
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
There were no executable files found in this plugin2,044 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 259 | 170 | 1,201 |
CSS | 3 | 18 | 31 | 553 |
JavaScript | 4 | 61 | 28 | 290 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 42 | |
▷ Static methods | 13 | 30.95% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.14% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/comment.png | 0.75KB | 0.66KB | ▼ 12.71% |
assets/images/user.png | 1.02KB | 1.04KB | 0.00% |