Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/management-companie/Inc/Core/Activator.php+37
Use of undefined constant WOOCOMMERCE_VERSION - assumed 'WOOCOMMERCE_VERSION' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.47ms] Passed 4 tests
An overview of server-side resources used by Facturare.Online
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.50 ▼5.23 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.01 ▼14.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.22 ▼0.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.64 ▲3.56 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.92 ▼1.40 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 101 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Facturare.Online: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.74 ▲0.39 | 1.63 ▼0.10 | 39.36 ▼4.83 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.01 | 83.36 ▼7.63 | 38.87 ▼4.29 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.04 | 38.14 ▼0.43 | 35.79 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.63 ▲0.69 | 662.37 ▼66.50 | 62.85 ▲10.48 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.18 ▼0.00 | 115.24 ▲14.93 | 53.94 ▲10.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FacturareOnline\\Inc\\Libraries\\JsonSchema\\Constraints\\BaseConstraint' not found in wp-content/plugins/management-companie/Inc/Libraries/JsonSchema/Constraints/Constraint.php:20
- > PHP Fatal error
Uncaught Error: Class 'FacturareOnline\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/management-companie/Inc/Libraries/sylouuu/Curl/Method/Delete.php:13
- > PHP Fatal error
Uncaught Error: Class 'FacturareOnline\\Inc\\Libraries\\JsonSchema\\Constraints\\Constraint' not found in wp-content/plugins/management-companie/Inc/Libraries/JsonSchema/Constraints/SchemaConstraint.php:24
- > PHP Fatal error
Uncaught Error: Class 'FacturareOnline\\Inc\\Libraries\\JsonSchema\\Exception\\RuntimeException' not found in wp-content/plugins/management-companie/Inc/Libraries/JsonSchema/Exception/ValidationException.php:12
- > PHP Fatal error
Uncaught Error: Class 'FacturareOnline\\Inc\\Libraries\\JsonSchema\\Uri\\Retrievers\\AbstractRetriever' not found in wp-content/plugins/management-companie/Inc/Libraries/JsonSchema/Uri/Retrievers/Curl.php:20
- > PHP Fatal error
Uncaught Error: Class 'FacturareOnline\\Inc\\Libraries\\sylouuu\\Curl\\Curl' not found in wp-content/plugins/management-companie/Inc/Libraries/sylouuu/Curl/Method/Get.php:13
- > PHP Fatal error
Uncaught Error: Class 'FacturareOnline\\Inc\\Libraries\\JsonSchema\\Exception\\RuntimeException' not found in wp-content/plugins/management-companie/Inc/Libraries/JsonSchema/Exception/InvalidSchemaMediaTypeException.php:15
- > PHP Fatal error
Uncaught Error: Interface 'FacturareOnline\\Inc\\Libraries\\JsonSchema\\Constraints\\TypeCheck\\TypeCheckInterface' not found in wp-content/plugins/management-companie/Inc/Libraries/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php:5
- > PHP Fatal error
Uncaught Error: Interface 'FacturareOnline\\Inc\\Libraries\\JsonSchema\\Exception\\ExceptionInterface' not found in wp-content/plugins/management-companie/Inc/Libraries/JsonSchema/Exception/RuntimeException.php:15
- > PHP Fatal error
Uncaught Error: Class 'Automattic\\WooCommerce\\Utilities\\OrderUtil' not found in wp-content/plugins/management-companie/Inc/Admin/views/html-managementcompanie-admin-display.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: ecommerce, facturareonline, invoice
management-companie/managementcompanie.php 85% from 13 tests
"Facturare.Online" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.1" instead of "6.9.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("management-companie.php" instead of "managementcompanie.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin11,853 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 2,113 | 6,510 | 11,154 |
JavaScript | 2 | 23 | 9 | 439 |
PO File | 1 | 85 | 127 | 196 |
CSS | 2 | 11 | 8 | 63 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 25.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 401.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 4 | 6.45% |
▷ Concrete classes | 58 | 93.55% |
▷ Final classes | 0 | 0.00% |
Methods | 484 | |
▷ Static methods | 44 | 9.09% |
▷ Public methods | 423 | 87.40% |
▷ Protected methods | 36 | 7.44% |
▷ Private methods | 25 | 5.17% |
Functions | 8 | |
▷ Named functions | 1 | 12.50% |
▷ Anonymous functions | 7 | 87.50% |
Constants | 84 | |
▷ Global constants | 19 | 22.62% |
▷ Class constants | 65 | 77.38% |
▷ Public constants | 65 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 0.37KB | 0.36KB | ▼ 1.60% |