Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼310.21ms] Passed 4 tests
A check of server-side resources used by Social Feed Block - Display Social Feed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.05 | 51.64 ▲2.00 |
Dashboard /wp-admin | 3.47 ▲0.06 | 32.37 ▼3.01 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 34.12 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 96.75 ▼1,236.99 |
Media Library /wp-admin/upload.php | 3.34 ▲0.05 | 24.04 ▲0.39 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Social Feed Block - Display Social Feed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲41 | 15.93 ▲0.23 | 6.17 ▲0.50 | 2.11 ▼0.06 |
Dashboard /wp-admin | 2,895 ▲37 | 6.07 ▼0.10 | 118.69 ▼17.05 | 154.48 ▼4.33 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.37 ▲0.14 | 61.61 ▲1.61 | 135.54 ▼10.31 |
Add New Post /wp-admin/post-new.php | 1,701 ▲40 | 18.36 ▲2.33 | 447.07 ▲40.54 | 179.20 ▲20.71 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▲0.01 | 139.18 ▼5.04 | 177.62 ▼8.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant IFB_PLUGIN_VERSION - assumed 'IFB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-feed-block/dist/editor.asset.php on line 3
- > PHP Warning
Use of undefined constant IFB_PLUGIN_VERSION - assumed 'IFB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-feed-block/dist/script.asset.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #2 (Social Feed)
- Requires at least: Invalid plugin version format
social-feed-block/index.php 85% from 13 tests
"Social Feed Block - Display Social Feed" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("social-feed-block.php" instead of "index.php")
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
There were no executable files found in this plugin230 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 147 |
PHP | 3 | 12 | 14 | 79 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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 | 2.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ 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 | 5 | |
▷ Static methods | 2 | 40.00% |
▷ Public methods | 5 | 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 | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/src/img/logo-small.png | 7.63KB | 6.87KB | ▼ 9.96% |