Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/infinite-scroll-generatepress/gp_infinite_scroll.php+42
Trying to access array offset on value of type bool
Server metrics [RAM: ▼2.48MB] [CPU: ▼344.97ms] Passed 4 tests
This is a short check of server-side resources used by Infinite Scroll for GeneratePress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.88 ▼1.63 | 5.65 ▼49.35 |
Dashboard /wp-admin | 1.90 ▼1.50 | 4.79 ▼34.08 |
Posts /wp-admin/edit.php | 1.90 ▼1.74 | 4.67 ▼36.31 |
Add New Post /wp-admin/post-new.php | 1.90 ▼5.06 | 4.64 ▼1,255.46 |
Media Library /wp-admin/upload.php | 1.90 ▼1.39 | 3.97 ▼38.75 |
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: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Infinite Scroll for GeneratePress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,957 ▲203 | 16.37 ▲0.63 | 10.57 ▲4.42 | 2.91 ▲0.07 |
Dashboard /wp-admin | 2,895 ▲37 | 6.10 ▼0.19 | 137.90 ▼1.43 | 161.91 ▼37.08 |
Posts /wp-admin/edit.php | 2,711 ▲26 | 3.24 ▲0.01 | 66.58 ▲0.68 | 135.68 ▼6.63 |
Add New Post /wp-admin/post-new.php | 1,674 ▼37 | 16.38 ▼4.46 | 406.27 ▼49.98 | 155.56 ▼2.42 |
Media Library /wp-admin/upload.php | 1,718 ▲20 | 5.55 ▲0.01 | 139.13 ▲0.13 | 217.19 ▲33.59 |
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
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/infinite-scroll-generatepress/gp_infinite_scroll.php+42
Trying to access array offset on value of type bool
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Infinite_Scroll_GeneratePress' not found in wp-content/plugins/infinite-scroll-generatepress/admin/settings.php:6
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: generatepress, infinite scroll
infinite-scroll-generatepress/gp_infinite_scroll.php 85% from 13 tests
"Infinite Scroll for GeneratePress" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("infinite-scroll-generatepress.php" instead of "gp_infinite_scroll.php")
- Description: The description should be shorter than 140 characters (currently 181 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected318 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 54 | 237 |
JavaScript | 1 | 7 | 6 | 74 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin