Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼9.33ms] Passed 4 tests
This is a short check of server-side resources used by WP Ajax Load More Pagination and Infinite Scroll
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 46.06 ▲3.98 |
Dashboard /wp-admin | 3.46 ▲0.11 | 48.33 ▼15.93 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.57 ▼2.77 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 96.26 ▼19.14 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.97 ▲0.52 |
Ajax Pagination /wp-admin/options-general.php?page=wp-ajax-pagination-admin | 3.37 | 34.10 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ajax_pagination |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Ajax Load More Pagination and Infinite Scroll
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.18 ▼0.38 | 2.15 ▲0.57 | 43.02 ▲0.02 |
Dashboard /wp-admin | 2,198 ▲18 | 5.53 ▼0.14 | 83.57 ▼3.09 | 37.99 ▼6.56 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 1.96 ▼0.01 | 41.49 ▲3.66 | 34.53 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.21 ▲0.20 | 603.18 ▼34.28 | 54.87 ▼13.89 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.24 ▲0.01 | 108.04 ▲4.06 | 44.24 ▼3.17 |
Ajax Pagination /wp-admin/options-general.php?page=wp-ajax-pagination-admin | 972 | 1.67 | 25.16 | 34.58 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wp-ajax-pagination/src/Admin/Customizer/CustomizeLabel.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/wp-ajax-pagination/src/Admin/Customizer/CustomizeDonate.php:5
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (WP Ajax Pagination settings)
wp-ajax-pagination/wp-ajax-pagination.php 92% from 13 tests
The main file in "WP Ajax Load More Pagination and Infinite Scroll" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
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
There were no executable files found in this plugin1,732 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 471 | 334 | 1,567 |
JSON | 3 | 1 | 0 | 72 |
Markdown | 1 | 53 | 0 | 70 |
CSS | 1 | 1 | 1 | 23 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 5 | 6.49% |
▷ Public methods | 74 | 96.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 3.90% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
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 |
screenshot-1.png | 21.70KB | 11.87KB | ▼ 45.28% |