Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.37MB] [CPU: ▼160.44ms] Passed 4 tests
Analyzing server-side resources used by Widgetizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.06 ▲0.23 | 41.77 ▲3.78 |
Dashboard /wp-admin | 3.35 ▲0.29 | 52.42 ▲5.93 |
Posts /wp-admin/edit.php | 3.40 ▲0.29 | 47.67 ▼3.83 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.20 | 26.57 ▼641.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.23 | 38.32 ▼0.37 |
Server storage [IO: ▲5.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 242 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Widgetizer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 15.83 ▼0.11 | 12.96 ▲4.57 | 47.20 ▼0.46 |
Dashboard /wp-admin | 2,987 ▲53 | 5.92 ▼0.05 | 159.33 ▼28.02 | 112.97 ▼5.31 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.70 ▼0.02 | 75.07 ▲6.14 | 88.24 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,696 ▲196 | 18.80 ▲0.38 | 565.66 ▲160.72 | 119.66 ▲2.56 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.04 ▼0.03 | 149.87 ▼15.01 | 122.34 ▼2.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 104× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'Nette\\StaticClass' not found in wp-content/plugins/widgetizer/vendor/nette/php-generator/src/PhpGenerator/Helpers.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\FilterIterator' not found in wp-content/plugins/widgetizer/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php:19
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/widgetizer/vendor/symfony/finder/Tests/Comparator/ComparatorTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\FilterIterator' not found in wp-content/plugins/widgetizer/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function PHPSTORM_META\\override() in wp-content/plugins/widgetizer/vendor/nette/utils/.phpstorm.meta.php:5
- > PHP Fatal error
Trait 'Latte\\Strict' not found in wp-content/plugins/widgetizer/vendor/latte/latte/src/Latte/Engine.php on line 14
- > PHP Fatal error
Trait 'Latte\\Strict' not found in wp-content/plugins/widgetizer/vendor/latte/latte/src/Latte/Runtime/Template.php on line 17
- > PHP Fatal error
Trait 'Nette\\SmartObject' not found in wp-content/plugins/widgetizer/vendor/nette/php-generator/src/PhpGenerator/ClassType.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\MultiplePcreFilterIterator' not found in wp-content/plugins/widgetizer/vendor/symfony/finder/Iterator/FilenameFilterIterator.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\FilterIterator' not found in wp-content/plugins/widgetizer/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: gutenberg widget, elementor, elementor widget, gutenberg
widgetizer/widgetizer.php 85% from 13 tests
Analyzing the main PHP file in "Widgetizer" version 1.0.3
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin83,013 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 5,931 | 6,000 | 35,752 |
CSS | 3 | 7,846 | 170 | 29,469 |
PHP | 174 | 4,209 | 7,023 | 15,416 |
C | 1 | 188 | 47 | 879 |
Markdown | 6 | 286 | 0 | 674 |
JSON | 1 | 0 | 0 | 553 |
C/C++ Header | 2 | 40 | 46 | 132 |
reStructuredText | 1 | 94 | 135 | 97 |
m4 | 1 | 11 | 11 | 41 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 14.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 35 | |
Interfaces | 13 | |
Traits | 7 | |
Classes | 166 | |
▷ Abstract classes | 5 | 3.01% |
▷ Concrete classes | 161 | 96.99% |
▷ Final classes | 6 | 3.73% |
Methods | 1,256 | |
▷ Static methods | 252 | 20.06% |
▷ Public methods | 1,165 | 92.75% |
▷ Protected methods | 39 | 3.11% |
▷ Private methods | 52 | 4.14% |
Functions | 126 | |
▷ Named functions | 13 | 10.32% |
▷ Anonymous functions | 113 | 89.68% |
Constants | 65 | |
▷ Global constants | 5 | 7.69% |
▷ Class constants | 60 | 92.31% |
▷ Public constants | 60 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin