Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▲4.66ms] Passed 4 tests
Analyzing server-side resources used by Enhanced Text Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 43.58 ▲1.31 |
Dashboard /wp-admin | 3.78 ▲0.48 | 51.15 ▲2.38 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 55.46 ▲9.62 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 92.77 ▲7.15 |
Media Library /wp-admin/upload.php | 3.71 ▲0.47 | 40.98 ▲7.80 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 127 new files
Database: no new tables, 9 new options
New WordPress options |
---|
_tifm_force_disable_feature_update |
widget_enhancedtextwidget |
theysaidso_admin_options |
analyst_cache |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Enhanced Text Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,084 ▲322 | 14.17 ▼0.08 | 1.68 ▼0.19 | 37.83 ▼4.99 |
Dashboard /wp-admin | 2,486 ▲306 | 5.64 ▲0.04 | 101.03 ▼0.81 | 83.31 ▲40.58 |
Posts /wp-admin/edit.php | 2,413 ▲313 | 2.16 ▲0.15 | 43.03 ▲3.77 | 45.74 ▲11.28 |
Add New Post /wp-admin/post-new.php | 1,886 ▲360 | 23.01 ▲0.12 | 681.89 ▲66.23 | 63.45 ▲12.08 |
Media Library /wp-admin/upload.php | 1,697 ▲300 | 4.25 ▲0.01 | 102.69 ▲0.05 | 77.31 ▲32.84 |
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
- This plugin did not uninstall successfully, leaving 10 options in the database
- theysaidso_admin_options
- can_compress_scripts
- _tifm_force_disable_feature_update
- widget_recent-comments
- analyst_accounts_data
- db_upgraded
- analyst_cache
- widget_recent-posts
- widget_enhancedtextwidget
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/enhanced-text-widget/analyst/templates/optin.php
- > /wp-content/plugins/enhanced-text-widget/analyst/templates/forms/install.php
- > /wp-content/plugins/enhanced-text-widget/analyst/templates/optout.php
- > /wp-content/plugins/enhanced-text-widget/analyst/templates/forms/deactivate.php
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/enhanced-text-widget/analyst/src/Http/Requests/OptOutRequest.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\HttpClientContract' not found in wp-content/plugins/enhanced-text-widget/analyst/src/Http/DummyHttpClient.php:8
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Core\\AbstractFactory' not found in wp-content/plugins/enhanced-text-widget/analyst/src/Notices/NoticeFactory.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\RequestContract' not found in wp-content/plugins/enhanced-text-widget/analyst/src/Http/Requests/AbstractLoggerRequest.php:10
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/enhanced-text-widget/analyst/src/Http/Requests/UninstallRequest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\HttpClientContract' not found in wp-content/plugins/enhanced-text-widget/analyst/src/Http/WordPressHttpClient.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\HttpClientContract' not found in wp-content/plugins/enhanced-text-widget/analyst/src/Http/CurlHttpClient.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\CacheContract' not found in wp-content/plugins/enhanced-text-widget/analyst/src/Cache/DatabaseCache.php:12
- > PHP Notice
Undefined variable: pencilImage in wp-content/plugins/enhanced-text-widget/analyst/templates/forms/deactivate.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Core\\AbstractFactory' not found in wp-content/plugins/enhanced-text-widget/analyst/src/Account/AccountDataFactory.php:15
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (20 tag instead of maximum 10)
enhanced-text-widget/enhanced-text-widget.php 92% from 13 tests
Analyzing the main PHP file in "Enhanced Text Widget" version 1.6.2
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)
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
Good job! No executable or dangerous file extensions detected3,907 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 62 | 953 | 1,451 | 3,092 |
CSS | 2 | 48 | 4 | 368 |
JavaScript | 2 | 24 | 5 | 230 |
SVG | 28 | 0 | 2 | 177 |
PO File | 1 | 12 | 11 | 40 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 2 | 8.00% |
▷ Concrete classes | 23 | 92.00% |
▷ Final classes | 0 | 0.00% |
Methods | 201 | |
▷ Static methods | 23 | 11.44% |
▷ Public methods | 173 | 86.07% |
▷ Protected methods | 10 | 4.98% |
▷ Private methods | 18 | 8.96% |
Functions | 29 | |
▷ Named functions | 10 | 34.48% |
▷ Anonymous functions | 19 | 65.52% |
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
30 PNG files occupy 0.41MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner/views/projects/cdp/imgs/main-background-image.png | 14.24KB | 14.12KB | ▼ 0.85% |
assets/screenshot-1.png | 52.49KB | 14.24KB | ▼ 72.87% |
banner/views/projects/bmi/imgs/big-colored-logo.png | 0.85KB | 0.83KB | ▼ 2.18% |
banner/views/projects/usm/imgs/play-icon.png | 0.62KB | 0.60KB | ▼ 3.17% |
analyst/assets/img/shield_question.png | 22.05KB | 11.19KB | ▼ 49.26% |