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
Installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼146.49ms] Passed 4 tests
A check of server-side resources used by Genesis Sandbox Featured Content Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.41 | 35.75 ▲12.29 |
Dashboard /wp-admin | 3.35 ▲0.30 | 47.16 ▼5.25 |
Posts /wp-admin/edit.php | 3.47 ▲0.36 | 49.69 ▲1.90 |
Add New Post /wp-admin/post-new.php | 5.71 ▲0.28 | 92.83 ▼585.91 |
Media Library /wp-admin/upload.php | 3.30 ▲0.30 | 38.73 ▲3.30 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Genesis Sandbox Featured Content Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.26 ▲0.77 | 7.39 ▼5.39 | 53.17 ▲2.19 |
Dashboard /wp-admin | 2,973 ▲42 | 5.86 ▼0.20 | 136.37 ▼14.70 | 117.84 ▼2.44 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▼0.00 | 68.45 ▼5.87 | 106.10 ▲10.80 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.43 ▼0.01 | 363.57 ▼31.95 | 119.90 ▲3.93 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.02 ▲0.00 | 154.70 ▼10.92 | 128.65 ▲2.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/genesis-featured-content-widget/gs-featured-content-widget.php
- > /wp-content/plugins/genesis-featured-content-widget/gsfc-settings.php
- > /wp-content/plugins/genesis-featured-content-widget/widget.php
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)
No browser errors were detected
Optimizations
Plugin configuration 93% 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
5 plugin tags: genesis, featured post, studiopress, genesiswp, cu
genesis-featured-content-widget/gs-featured-content-widget.php 85% from 13 tests
This is the main PHP file of "Genesis Sandbox Featured Content Widget" version 1.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 263 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("genesis-featured-content-widget.php" instead of "gs-featured-content-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,870 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 275 | 585 | 1,660 |
CSS | 4 | 28 | 3 | 147 |
Markdown | 1 | 21 | 0 | 63 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 71.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 44 | 73.33% |
▷ Public methods | 53 | 88.33% |
▷ Protected methods | 7 | 11.67% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin