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.00MB] [CPU: ▼4.83ms] Passed 4 tests
Analyzing server-side resources used by OCA para WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.50 ▼5.89 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.06 ▼0.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.63 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.09 ▼12.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.75 ▲1.90 |
Server storage [IO: ▲1.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 150 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OCA para WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼1.13 | 1.70 ▼0.12 | 42.83 ▲2.92 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.08 | 96.81 ▼2.02 | 39.46 ▼5.03 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.00 ▼0.06 | 35.99 ▼4.78 | 31.19 ▼5.00 |
Add New Post /wp-admin/post-new.php | 1,514 ▼10 | 17.83 ▼5.43 | 635.26 ▼30.23 | 72.50 ▲9.59 |
Media Library /wp-admin/upload.php | 1,388 ▲9 | 4.21 ▼0.00 | 93.12 ▼6.67 | 41.77 ▼3.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- 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
Even though no errors were found, this is by no means 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
The following issues need your attention
- 50× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/oca-for-woocommerce/libs/fpdi/PdfParser/Filter/Ascii85.php:16
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/oca-for-woocommerce/libs/fpdi/PdfParser/Type/PdfArray.php:21
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\Tcpdf\\Fpdi' not found in wp-content/plugins/oca-for-woocommerce/libs/fpdi/TcpdfFpdi.php:20
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/oca-for-woocommerce/libs/fpdi/PdfParser/CrossReference/LineReader.php:22
- > PHP Fatal error
Uncaught Error: Class 'CRPlugins\\Oca\\Settings\\Fields\\Field' not found in wp-content/plugins/oca-for-woocommerce/Settings/Fields/AjaxButtonField.php:5
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\CrossReference\\AbstractReader' not found in wp-content/plugins/oca-for-woocommerce/libs/fpdi/PdfParser/CrossReference/FixedReader.php:22
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\FpdfTpl' not found in wp-content/plugins/oca-for-woocommerce/libs/fpdi/Fpdi.php:23
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Filter\\FilterException' not found in wp-content/plugins/oca-for-woocommerce/libs/fpdi/PdfParser/Filter/LzwException.php:16
- > PHP Fatal error
Trait 'CRPlugins\\Oca\\Helper\\StringsTrait' not found in wp-content/plugins/oca-for-woocommerce/Helper/WooCommerceTrait.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/oca-for-woocommerce/libs/fpdi/PdfParser/Type/PdfName.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
oca-for-woocommerce/woocommerce-oca.php 77% from 13 tests
"OCA para WooCommerce" version 2.7.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("oca-for-woocommerce.php" instead of "woocommerce-oca.php")
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin9,682 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 1,722 | 2,790 | 9,109 |
PO File | 1 | 191 | 213 | 553 |
SVG | 1 | 0 | 0 | 9 |
JavaScript | 6 | 0 | 0 | 6 |
CSS | 3 | 0 | 0 | 3 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
An overview 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.35 |
Average class complexity | 12.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 5 | |
Traits | 9 | |
Classes | 93 | |
▷ Abstract classes | 6 | 6.45% |
▷ Concrete classes | 87 | 93.55% |
▷ Final classes | 8 | 9.20% |
Methods | 586 | |
▷ Static methods | 94 | 16.04% |
▷ Public methods | 478 | 81.57% |
▷ Protected methods | 102 | 17.41% |
▷ Private methods | 6 | 1.02% |
Functions | 16 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 16 | 100.00% |
Constants | 44 | |
▷ Global constants | 1 | 2.27% |
▷ Class constants | 43 | 97.73% |
▷ Public constants | 42 | 97.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/img/logo.png | 3.11KB | 3.00KB | ▼ 3.48% |