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.22MB] [CPU: ▼2.44ms] Passed 4 tests
Server-side resources used by Focus - Featured Posts Widget & Shortcode
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 37.81 ▼5.44 |
Dashboard /wp-admin | 3.51 ▲0.21 | 52.06 ▲1.39 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 51.64 ▼0.89 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 101.96 ▼4.80 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.12 ▲3.62 |
Getting started with Focus /wp-admin/index.php?page=focuswp-getting-started | 3.40 | 34.73 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_focuswp_widget |
widget_recent-comments |
can_compress_scripts |
focuswp_installDate |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Focus - Featured Posts Widget & Shortcode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲120 | 13.88 ▼0.75 | 7.81 ▲5.98 | 43.09 ▲3.62 |
Dashboard /wp-admin | 2,204 ▲24 | 5.65 ▼0.04 | 89.08 ▼7.61 | 46.43 ▲1.31 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.08 ▲0.08 | 41.71 ▲4.44 | 34.81 ▲4.59 |
Add New Post /wp-admin/post-new.php | 1,547 ▲7 | 19.09 ▲0.74 | 660.80 ▲2.79 | 56.45 ▲2.51 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.30 ▲0.09 | 103.10 ▼1.20 | 42.83 ▼0.50 |
Getting started with Focus /wp-admin/index.php?page=focuswp-getting-started | 1,356 | 6.30 | 59.10 | 86.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- can_compress_scripts
- widget_focuswp_widget
- theysaidso_admin_options
- widget_recent-posts
- focuswp_installDate
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Please add at least on tag
- Screenshots: Add images for these screenshots: #1 (Widget Filter Options), #2 (Widget Slider Options), #3 (Media Frame Filter Options), #4 (Media Frame Slider Options), #5 (Focus Featured Post Slider)
focus-slider/plugin.php 85% from 13 tests
The main PHP script in "Focus - Featured Posts Widget & Shortcode" version 1.0 is automatically included on every request by WordPress
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: Name the main plugin file the same as the plugin slug ("focus-slider.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,894 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 116 | 133 | 785 |
JavaScript | 8 | 97 | 68 | 600 |
Sass | 4 | 14 | 8 | 484 |
SVG | 1 | 9 | 0 | 21 |
CSS | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 13.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 1 | 2.08% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG images were not found in this plugin