Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.76ms] Passed 4 tests
Analyzing server-side resources used by WP Masonry & Infinite Scroll
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.92 ▼1.18 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.89 ▼5.04 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.90 ▼3.25 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 118.01 ▲25.53 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.11 ▲2.44 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Masonry & Infinite Scroll: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,925 ▲168 | 13.80 ▼0.46 | 9.08 ▲7.09 | 41.12 ▼9.03 |
Dashboard /wp-admin | 2,221 ▲33 | 6.06 ▲0.25 | 101.13 ▼17.05 | 38.97 ▼6.94 |
Posts /wp-admin/edit.php | 2,083 ▼6 | 2.07 ▲0.03 | 34.80 ▼1.28 | 35.89 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,552 ▲18 | 18.36 ▼4.75 | 592.85 ▼55.39 | 52.72 ▼1.64 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.20 ▲0.04 | 98.99 ▲0.81 | 42.25 ▼1.71 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-masonry-infinite-scroll/includes/functions.php
- > /wp-content/plugins/wp-masonry-infinite-scroll/admin/admin-page.php
- 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/wp-masonry-infinite-scroll/wordpress-masonry-infinite-scroll.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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: Screenshot #3 (Boom Magic !) image missing
wp-masonry-infinite-scroll/wordpress-masonry-infinite-scroll.php 85% from 13 tests
Analyzing the main PHP file in "WP Masonry & Infinite Scroll" version 2.0
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 155 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-masonry-infinite-scroll.php" instead of "wordpress-masonry-infinite-scroll.php")
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
Success! There were no dangerous files found in this plugin866 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 164 | 26 | 732 |
CSS | 1 | 39 | 0 | 129 |
JavaScript | 3 | 2 | 29 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 12.04KB | 6.41KB | ▼ 46.78% |
images/wpfavicon.png | 26.90KB | 9.17KB | ▼ 65.90% |