Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.93ms] Passed 4 tests
This is a short check of server-side resources used by XML for E-Katalog (ek.ua)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.65 ▼3.12 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.55 ▼2.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.00 ▼3.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.61 ▼11.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.16 ▲4.80 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for XML for E-Katalog (ek.ua)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.43 ▼0.24 | 1.74 ▼0.19 | 43.71 ▼6.65 |
Dashboard /wp-admin | 2,206 ▲21 | 5.87 ▲0.98 | 106.74 ▼9.31 | 41.48 ▼3.75 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▼0.02 | 33.37 ▼4.30 | 31.79 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 23.30 ▲5.74 | 687.90 ▲21.30 | 51.94 ▼2.32 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▼0.00 | 92.65 ▼4.95 | 46.18 ▲3.72 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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 50% 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
The following issues need your attention
- 35× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'EKatWoo\\Services\\GeneratorXML' not found in wp-content/plugins/xml-e-katalog/inc/classes/services/WooGeneratorXML.php:17
- > PHP Warning
Use of undefined constant EKATWOO_INC - assumed 'EKATWOO_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/xml-e-katalog/inc/classes/load.php on line 14
- > PHP Warning
include(EKATWOO_INCclasses/services/FileManager.php): failed to open stream: No such file or directory in wp-content/plugins/xml-e-katalog/inc/classes/load.php on line 13
- > PHP Warning
include(EKATWOO_INCclasses/services/WooGeneratorXML.php): failed to open stream: No such file or directory in wp-content/plugins/xml-e-katalog/inc/classes/load.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'EKatWoo\\Repositories\\Settings' not found in wp-content/plugins/xml-e-katalog/templates/pages/generate-xml.php:10
- > PHP Warning
Use of undefined constant EKATWOO_INC - assumed 'EKATWOO_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/xml-e-katalog/inc/classes/load.php on line 19
- > PHP Warning
Use of undefined constant EKATWOO_INC - assumed 'EKATWOO_INC' (this will throw an Error in a future version of PHP) in wp-content/plugins/xml-e-katalog/inc/classes/load.php on line 17
- > PHP Warning
include(EKATWOO_INCclasses/controllers/AbstractController.php): failed to open stream: No such file or directory in wp-content/plugins/xml-e-katalog/inc/classes/load.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/xml-e-katalog/xml-for-ek.php:12
- > PHP Warning
include(): Failed opening 'EKATWOO_INCclasses/controllers/GenerateXMLController.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/xml-e-katalog/inc/classes/load.php on line 20
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: export, woocommerce, e-katalog, ekatalog, xml...
xml-e-katalog/xml-for-ek.php 77% from 13 tests
This is the main PHP file of "XML for E-Katalog (ek.ua)" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 167 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("xml-e-katalog.php" instead of "xml-for-ek.php")
- 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 check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected639 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 202 | 256 | 584 |
CSS | 1 | 11 | 0 | 55 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 26 | 65.00% |
▷ Public methods | 27 | 67.50% |
▷ Protected methods | 6 | 15.00% |
▷ Private methods | 7 | 17.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin