Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.91ms] Passed 4 tests
Analyzing server-side resources used by Infinite Scroll for Media Library
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 31.89 ▼7.09 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.03 ▼2.28 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.75 ▼4.57 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.87 ▼9.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 30.75 ▼0.11 |
Media Infinite Scroll /wp-admin/options-general.php?page=optim-infinite-scroll | 3.23 | 31.11 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
optim_is_choice |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Infinite Scroll for Media Library
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼0.89 | 1.52 ▼0.36 | 38.49 ▼4.44 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲0.99 | 105.30 ▼12.61 | 42.27 ▼1.03 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.15 | 38.92 ▲1.11 | 34.49 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 18.39 ▲0.73 | 610.77 ▼76.97 | 68.45 ▲22.96 |
Media Library /wp-admin/upload.php | 1,375 ▼13 | 4.09 ▼0.17 | 93.18 ▼2.93 | 43.33 ▼1.63 |
Media Infinite Scroll /wp-admin/options-general.php?page=optim-infinite-scroll | 837 | 2.06 | 25.76 | 28.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- optim_is_choice
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/infinite-scroll-in-media-library/infinite-scrolling-media-library.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #4 is missing in infinite-scroll-in-media-library/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Infinite Scroll for Media Library===
)
infinite-scroll-in-media-library/infinite-scrolling-media-library.php 69% from 13 tests
Analyzing the main PHP file in "Infinite Scroll for Media Library" version 1.0.0
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("infinite-scroll-in-media-library.php" instead of "infinite-scrolling-media-library.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.0" instead of "7.2")
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
There were no executable files found in this plugin178 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 34 | 155 | 176 |
Markdown | 1 | 0 | 0 | 2 |
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.21 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/optim-logo.png | 6.53KB | 6.68KB | 0.00% |