Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼294.06ms] Passed 4 tests
A check of server-side resources used by Ajax Pagination and Infinite Scroll
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.17 | 63.56 ▲6.01 |
Dashboard /wp-admin | 3.57 ▲0.15 | 42.54 ▲0.54 |
Posts /wp-admin/edit.php | 3.80 ▲0.15 | 48.66 ▲7.92 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.04 | 102.15 ▼1,177.10 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 24.71 ▼5.69 |
Ajax Pagination Settings /wp-admin/options-general.php?page=malinky-ajax-pagination-settings-1 | 3.42 | 28.88 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Ajax Pagination and Infinite Scroll
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,975 ▲221 | 17.80 ▲2.14 | 5.67 ▼0.71 | 2.02 ▼0.68 |
Dashboard /wp-admin | 3,112 ▲251 | 8.04 ▲1.73 | 142.68 ▲8.09 | 203.52 ▲33.40 |
Posts /wp-admin/edit.php | 2,930 ▲242 | 5.14 ▲1.91 | 80.42 ▲14.16 | 191.18 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,673 ▲7 | 16.03 ▼4.41 | 403.99 ▼57.04 | 172.19 ▼6.10 |
Media Library /wp-admin/upload.php | 1,711 ▲13 | 5.55 ▲0.01 | 129.91 ▼12.35 | 190.50 ▲2.68 |
Ajax Pagination Settings /wp-admin/options-general.php?page=malinky-ajax-pagination-settings-1 | 1,507 | 4.28 | 69.22 | 209.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
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
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/malinky-ajax-pagination/malinky-ajax-pagination.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Tags: Too many tags (25 tag instead of maximum 10); only the first 5 tags are used in your directory listing
malinky-ajax-pagination/malinky-ajax-pagination.php 92% from 13 tests
The entry point to "Ajax Pagination and Infinite Scroll" version 2.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 233 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin686 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 95 | 189 | 556 |
PO File | 1 | 40 | 43 | 125 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 0 | 0.00% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
There were not PNG files found in your plugin