Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼146.61ms] Passed 4 tests
A check of server-side resources used by Infinite Scroll Random Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 47.30 ▲22.86 |
Dashboard /wp-admin | 3.09 ▲0.03 | 50.55 ▼3.86 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 51.07 ▼1.53 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 106.59 ▼583.19 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 37.32 ▲2.14 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, no new options
New tables |
---|
wp_isrp_tracker_unique |
Browser metrics Passed 4 tests
A check of browser resources used by Infinite Scroll Random Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.35 ▲0.44 | 13.08 ▼4.99 | 54.90 ▼0.27 |
Dashboard /wp-admin | 2,973 ▲42 | 5.86 ▼0.06 | 143.49 ▼22.13 | 118.69 ▲1.26 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.01 | 70.96 ▲0.34 | 95.36 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.60 ▲0.23 | 416.90 ▲15.14 | 115.04 ▲7.20 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 4.99 ▼0.04 | 161.05 ▼9.77 | 126.48 ▼1.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_isrp_tracker_unique
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/infinite-scroll-random-post/isrp.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
6 plugin tags: listing, lazy loading, open source, random post, lazy load...
infinite-scroll-random-post/isrp.php 92% from 13 tests
Analyzing the main PHP file in "Infinite Scroll Random Post" version 1.0
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("infinite-scroll-random-post.php" instead of "isrp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected255 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 21 | 128 |
JavaScript | 1 | 24 | 28 | 118 |
Sass | 1 | 0 | 0 | 5 |
CSS | 1 | 1 | 1 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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 | 0 | |
▷ Global constants | 0 | 0.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