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.01MB] [CPU: ▼5.11ms] Passed 4 tests
A check of server-side resources used by WooPop -> (Fattura Elettronica)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.67 ▼1.70 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.84 ▼15.42 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.92 ▼1.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.61 ▼1.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.82 ▲3.10 |
Server storage [IO: ▲11.09MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 361 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WooPop -> (Fattura Elettronica)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.67 ▲0.61 | 1.98 ▲0.29 | 38.23 ▼8.01 |
Dashboard /wp-admin | 2,192 ▲12 | 5.47 ▼0.07 | 93.91 ▲3.16 | 36.83 ▼3.71 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.06 | 40.04 ▲1.65 | 36.48 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.33 ▲0.17 | 585.53 ▼27.93 | 61.35 ▲6.93 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.31 ▲0.10 | 95.33 ▲0.52 | 42.42 ▲0.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 125× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/phenx/php-font-lib/src/FontLib/Glyph/Outline.php:20
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/phenx/php-svg-lib/src/Svg/Tag/StyleTag.php:13
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\RuleSet\\RuleSet' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/sabberworm/php-css-parser/src/RuleSet/AtRuleSet.php:11
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/phenx/php-font-lib/src/FontLib/EOT/File.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Renderable' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/sabberworm/php-css-parser/src/RuleSet/RuleSet.php:18
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/phenx/php-svg-lib/src/Svg/Document.php:30
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\PrimitiveValue' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/sabberworm/php-css-parser/src/Value/URL.php:11
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Property\\Selector' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/sabberworm/php-css-parser/src/Property/KeyframeSelector.php:5
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Glyph\\Outline' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/phenx/php-font-lib/src/FontLib/Glyph/OutlineSimple.php:17
- > PHP Fatal error
Uncaught Error: Class 'Svg\\Tag\\AbstractTag' not found in wp-content/plugins/woopop-electronic-invoice-free/vendor/phenx/php-svg-lib/src/Svg/Tag/ClipPath.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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
4 plugin tags: fatturazione elettronica, fattura elettronica, fattura pdf, fattura xml
woopop-electronic-invoice-free/index.php 77% from 13 tests
Analyzing the main PHP file in "WooPop -> (Fattura Elettronica)" version 3.3.1
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woopop-electronic-invoice-free.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 389 characters long)
- Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.0")
Code Analysis 97% from 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
No dangerous file extensions were detected57,698 lines of code in 286 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 256 | 10,652 | 23,745 | 49,530 |
XSLT | 1 | 108 | 59 | 3,178 |
CSS | 3 | 290 | 76 | 1,457 |
JavaScript | 8 | 186 | 343 | 1,186 |
Markdown | 6 | 291 | 0 | 1,048 |
PO File | 1 | 328 | 436 | 774 |
JSON | 6 | 0 | 0 | 435 |
SVG | 2 | 0 | 1 | 36 |
YAML | 1 | 9 | 0 | 35 |
HTML | 1 | 0 | 0 | 17 |
XML | 1 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 651)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 41.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 809.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 651.00 |
Code structure | ||
---|---|---|
Namespaces | 45 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 206 | |
▷ Abstract classes | 13 | 6.31% |
▷ Concrete classes | 193 | 93.69% |
▷ Final classes | 12 | 6.22% |
Methods | 2,283 | |
▷ Static methods | 165 | 7.23% |
▷ Public methods | 1,879 | 82.30% |
▷ Protected methods | 247 | 10.82% |
▷ Private methods | 157 | 6.88% |
Functions | 64 | |
▷ Named functions | 28 | 43.75% |
▷ Anonymous functions | 36 | 56.25% |
Constants | 227 | |
▷ Global constants | 11 | 4.85% |
▷ Class constants | 216 | 95.15% |
▷ Public constants | 216 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |
assets/images/woopop.png | 6.32KB | 2.99KB | ▼ 52.61% |