Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/pro-text-widget/pro-text-widget.php+111
Function create_function() is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼57.04ms] Passed 4 tests
Server-side resources used by Pro Text Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 5.16 ▼43.35 |
Dashboard /wp-admin | 2.11 ▼1.20 | 6.27 ▼45.51 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.67 ▼46.13 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.21 ▼93.17 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.19 ▼30.71 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_pro_text_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Pro Text Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.21 | 1.70 ▼0.36 | 44.94 ▼0.93 |
Dashboard /wp-admin | 2,195 ▲18 | 5.57 ▼0.08 | 86.64 ▼1.38 | 41.56 ▼3.58 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.04 | 34.48 ▼9.40 | 33.98 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.11 ▲0.35 | 661.30 ▲16.87 | 68.86 ▲3.88 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.04 | 101.60 ▲2.89 | 45.14 ▼0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/pro-text-widget/pro-text-widget.php+111
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- widget_pro_text_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pro-text-widget/index.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pro-text-widget/pro-text-widget.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: text widget, pro text widget, text, widget, custom text widget...
pro-text-widget/pro-text-widget.php Passed 13 tests
This is the main PHP file of "Pro Text Widget" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
85 characters long description:
Pro Text Widget.You have choice to text widget show only specific Post/category/Page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin101 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 12 | 16 | 101 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 6.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 15.01KB | 6.76KB | ▼ 55.00% |