Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.55MB] [CPU: ▼0.64ms] Passed 4 tests
An overview of server-side resources used by UPC/EAN Code Generator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.69 | 43.82 ▲5.64 |
Dashboard /wp-admin | 3.88 ▲0.57 | 50.31 ▲1.97 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 55.16 ▲10.05 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.50 | 88.03 ▼13.36 |
Media Library /wp-admin/upload.php | 3.78 ▲0.54 | 40.06 ▲3.18 |
Settings /wp-admin/admin.php?page=upc-ean-generator | 3.71 | 42.36 |
Support /wp-admin/admin.php?page=upc-ean-generator-support | 3.71 | 39.33 |
Barcode Scanner /wp-admin/admin.php?page=bs-mobile-home | 3.68 | 36.32 |
FAQ /wp-admin/admin.php?page=upc-ean-generator-faq | 3.71 | 37.75 |
Server storage [IO: ▲2.63MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 308 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_uean_generator_files |
wp_uean_generator_codes |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
active-{%plugin%}-barcodes-version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
UPC/EAN Code Generator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲98 | 14.34 ▼0.00 | 1.56 ▼0.27 | 39.62 ▼8.03 |
Dashboard /wp-admin | 2,262 ▲85 | 5.98 ▲0.34 | 125.31 ▲35.07 | 41.47 ▼5.21 |
Posts /wp-admin/edit.php | 2,176 ▲76 | 2.98 ▲0.97 | 49.32 ▲8.46 | 35.48 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,562 ▲33 | 23.97 ▲0.63 | 681.21 ▲60.75 | 50.92 ▼15.06 |
Media Library /wp-admin/upload.php | 1,474 ▲74 | 5.43 ▲1.23 | 105.80 ▲6.17 | 41.46 ▼0.32 |
Settings /wp-admin/admin.php?page=upc-ean-generator | 997 | 3.38 | 60.79 | 32.62 |
Support /wp-admin/admin.php?page=upc-ean-generator-support | 845 | 2.61 | 30.82 | 23.11 |
Barcode Scanner /wp-admin/admin.php?page=bs-mobile-home | 843 | 2.73 | 32.05 | 24.80 |
FAQ /wp-admin/admin.php?page=upc-ean-generator-faq | 841 | 2.71 | 33.99 | 23.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_uean_generator_files
- wp_uean_generator_codes
- This plugin did not uninstall successfully, leaving 7 options in the database
- active-{%plugin%}-barcodes-version
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=bs-mobile-home
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'UkrSolution\UpcEanGenerator\Core' does not have a method 'mobilePageHome'
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
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/upc-ean-barcode-generator/src/features/settings/index.php
- > /wp-content/plugins/upc-ean-barcode-generator/src/features/products/views/set-field-value.php
- > /wp-content/plugins/upc-ean-barcode-generator/src/features/settings/index_backup.php
- 115× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_OpenDocument_WriterPart' not found in wp-content/plugins/upc-ean-barcode-generator/extlibs/PHPExcel/PHPExcel/Writer/OpenDocument/Content.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Style_Supervisor' not found in wp-content/plugins/upc-ean-barcode-generator/extlibs/PHPExcel/PHPExcel/Style.php:4
- > PHP Fatal error
require_once(): Failed opening required 'PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php' (include_path='.:/usr/share/php') in wp-content/plugins/upc-ean-barcode-generator/extlibs/PHPExcel/PHPExcel/Shared/trend/polynomialBestFitClass.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'UkrSolution\\UpcEanGenerator\\features\\Integrations\\DefaultField' not found in wp-content/plugins/upc-ean-barcode-generator/src/features/Integrations/EanForWc.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/upc-ean-barcode-generator/extlibs/PHPExcel/PHPExcel/Writer/Excel2007/Rels.php:4
- > PHP Warning
Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/upc-ean-barcode-generator/extlibs/PHPExcel/PHPExcel/Shared/trend/linearBestFitClass.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/upc-ean-barcode-generator/src/config/jsL10n.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Abstract' not found in wp-content/plugins/upc-ean-barcode-generator/extlibs/PHPExcel/PHPExcel/Writer/OpenDocument.php:4
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/upc-ean-barcode-generator/extlibs/PHPExcel/PHPExcel/CachedObjectStorage/Igbinary.php:4
- > PHP Warning
require_once(PHPEXCEL_ROOTPHPExcel/Shared/trend/bestFitClass.php): failed to open stream: No such file or directory in wp-content/plugins/upc-ean-barcode-generator/extlibs/PHPExcel/PHPExcel/Shared/trend/powerBestFitClass.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: ean, barcode, upc-a, ean-13, upc...
upc-ean-barcode-generator/index.php 77% from 13 tests
The principal PHP file in "UPC/EAN Code Generator" v. 2.0.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.1" instead of "4.0.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("upc-ean-barcode-generator.php" instead of "index.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected54,337 lines of code in 243 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 240 | 12,353 | 855 | 54,178 |
CSS | 1 | 4 | 0 | 91 |
JSON | 1 | 0 | 0 | 67 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,176)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 47.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,176.00 |
Average method complexity | 4.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 220 | |
▷ Abstract classes | 9 | 4.09% |
▷ Concrete classes | 211 | 95.91% |
▷ Final classes | 0 | 0.00% |
Methods | 2,912 | |
▷ Static methods | 639 | 21.94% |
▷ Public methods | 2,364 | 81.18% |
▷ Protected methods | 49 | 1.68% |
▷ Private methods | 499 | 17.14% |
Functions | 26 | |
▷ Named functions | 14 | 53.85% |
▷ Anonymous functions | 12 | 46.15% |
Constants | 869 | |
▷ Global constants | 120 | 13.81% |
▷ Class constants | 749 | 86.19% |
▷ Public constants | 749 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected