Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/special-teaser-widget/special-teaser-widget.php+74
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.50MB] [CPU: ▼0.52ms] Passed 4 tests
This is a short check of server-side resources used by Special Teaser Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.52 | 42.97 ▲1.93 |
Dashboard /wp-admin | 3.84 ▲0.54 | 48.55 ▼1.71 |
Posts /wp-admin/edit.php | 3.89 ▲0.54 | 51.78 ▲0.17 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.48 | 96.42 ▼1.62 |
Media Library /wp-admin/upload.php | 3.70 ▲0.48 | 38.53 ▲1.09 |
Special Teaser Widget /wp-admin/plugins.php?page=special-teaser-settings | 3.65 | 36.54 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
stw_options |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Special Teaser Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.21 ▼1.18 | 1.74 ▼0.28 | 40.46 ▼4.14 |
Dashboard /wp-admin | 2,211 ▲23 | 5.86 ▼0.03 | 107.99 ▲1.53 | 82.14 ▲40.70 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.02 ▲0.00 | 41.15 ▲2.46 | 38.11 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,522 ▲3 | 23.05 ▲1.76 | 671.19 ▲62.04 | 55.00 ▲0.07 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.23 ▼0.01 | 101.09 ▼4.93 | 70.88 ▲27.37 |
Special Teaser Widget /wp-admin/plugins.php?page=special-teaser-settings | 1,299 | 5.39 | 74.79 | 56.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 24 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=special-teaser-settings
- > Notice in wp-content/plugins/special-teaser-widget/class-lib/STW_AdminClass.php+407
Trying to access array offset on value of type null
SRP 50% 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'A5_DynamicFiles' not found in wp-content/plugins/special-teaser-widget/class-lib/STW_DynamicCSSClass.php:13
- > PHP Fatal error
Uncaught Error: Class 'A5_OptionPage' not found in wp-content/plugins/special-teaser-widget/class-lib/STW_AdminClass.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/special-teaser-widget/class-lib/A5_WidgetClass.php:14
- > PHP Fatal error
Uncaught Error: Class 'A5_Widget' not found in wp-content/plugins/special-teaser-widget/class-lib/STW_WidgetClass.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/plugins.php?page=special-teaser-settings
- > Network (severe)
https://button.flattr.com/flattr-badge-large.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The empty options page with the dummy widget), #2 (The options page while creating a style), #3 (One instance of the widget in action), #4 (Two widgets with different styles on our testing page)
special-teaser-widget/special-teaser-widget.php 92% from 13 tests
This is the main PHP file of "Special Teaser Widget" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 228 characters long)
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
Everything looks great! No dangerous files found in this plugin2,562 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,443 | 487 | 1,786 |
PO File | 2 | 231 | 317 | 549 |
JavaScript | 2 | 65 | 16 | 161 |
CSS | 1 | 1 | 1 | 66 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 28.90 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 32 | 32.00% |
▷ Public methods | 91 | 91.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 9.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/a5-icon-11.png | 0.67KB | 0.42KB | ▼ 37.17% |
img/a5-icon-16.png | 0.77KB | 0.57KB | ▼ 25.99% |
img/a5-icon-34.png | 1.65KB | 1.35KB | ▼ 18.07% |