Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.96MB] [CPU: ▼2.93ms] 75% from 4 tests
Server-side resources used by Fakturo
Please take the time to fix the following items
- CPU: The total CPU usage must kept under 500.00ms (currently 1,757.63ms on /wp-admin/plugins.php?page=fakturo)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.42 ▲0.96 | 40.45 ▼1.53 |
Dashboard /wp-admin | 4.28 ▲0.94 | 50.29 ▼10.15 |
Posts /wp-admin/edit.php | 4.40 ▲1.04 | 51.16 ▲3.66 |
Add New Post /wp-admin/post-new.php | 6.86 ▲0.98 | 84.89 ▼3.70 |
Media Library /wp-admin/upload.php | 4.19 ▲0.96 | 41.66 ▲6.48 |
Add Client /wp-admin/post-new.php?post_type=fktr_client | 4.30 | 113.02 |
Add New Receipt /wp-admin/post-new.php?post_type=fktr_receipt | 4.29 | 79.76 |
Add Provider /wp-admin/post-new.php?post_type=fktr_provider | 4.31 | 83.86 |
Dashboard /wp-admin/admin.php?page=fakturo_dashboard | 4.19 | 32.73 |
Fakturo News /wp-admin/index.php?page=fakturo-about | 4.16 | 34.89 |
Settings /wp-admin/admin.php?page=fakturo-settings-system | 4.18 | 38.47 |
Category /wp-admin/edit-tags.php?taxonomy=fktr_category | 4.19 | 44.55 |
Extensions /wp-admin/plugins.php?page=fakturo | 5.27 | 1,757.63 |
Add Product /wp-admin/post-new.php?post_type=fktr_product | 4.38 | 101.09 |
Receipts /wp-admin/edit.php?post_type=fktr_receipt | 4.26 | 46.63 |
Server storage [IO: ▲15.01MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 575 new files
Database: no new tables, 15 new options
New WordPress options |
---|
can_compress_scripts |
fakturo_redirects |
widget_recent-comments |
fakturo_info_options_group |
fakturo_system_options_group |
db_upgraded |
fakturo_dashboard_options_group |
last_receipt_number |
fktr_countries_children |
fktr_last_mananger_caps |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Fakturo
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,184 ▲434 | 14.36 ▲0.01 | 1.55 ▼0.18 | 37.59 ▼2.63 |
Dashboard /wp-admin | 2,590 ▲410 | 5.56 ▼0.12 | 82.43 ▼18.28 | 39.56 ▼3.04 |
Posts /wp-admin/edit.php | 2,426 ▲323 | 2.05 ▲0.08 | 35.72 ▼6.58 | 38.28 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,661 ▲133 | 23.26 ▲0.12 | 647.01 ▼61.79 | 53.53 ▲0.79 |
Media Library /wp-admin/upload.php | 1,812 ▲415 | 4.24 ▲0.06 | 98.17 ▼20.24 | 43.52 ▼8.56 |
Add Client /wp-admin/post-new.php?post_type=fktr_client | 3,085 | 4.57 | 100.87 | 58.85 |
Add New Receipt /wp-admin/post-new.php?post_type=fktr_receipt | 2,444 | 3.46 | 73.08 | 43.42 |
Add Provider /wp-admin/post-new.php?post_type=fktr_provider | 2,827 | 4.33 | 82.62 | 46.28 |
Dashboard /wp-admin/admin.php?page=fakturo_dashboard | 1,258 | 2.00 | 24.68 | 32.77 |
Fakturo News /wp-admin/index.php?page=fakturo-about | 1,555 | 2.18 | 25.53 | 78.74 |
Settings /wp-admin/admin.php?page=fakturo-settings-system | 2,410 | 2.86 | 57.82 | 37.10 |
Category /wp-admin/edit-tags.php?taxonomy=fktr_category | 1,790 | 2.29 | 28.75 | 35.03 |
Extensions /wp-admin/plugins.php?page=fakturo | 1,493 | 2.13 | 32.84 | 29.87 |
Add Product /wp-admin/post-new.php?post_type=fktr_product | 3,132 | 4.93 | 94.08 | 43.78 |
Receipts /wp-admin/edit.php?post_type=fktr_receipt | 1,618 | 2.02 | 35.17 | 30.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 15 options in the database
- widget_theysaidso_widget
- fakturo_info_options_group
- fktr_db_version
- fakturo_dashboard_options_group
- fktr_last_mananger_caps
- last_receipt_number
- widget_recent-posts
- fakturo_redirects
- theysaidso_admin_options
- can_compress_scripts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
The following issues need your attention
- 164× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\Block' not found in wp-content/plugins/fakturo/includes/libs/dompdf/src/FrameReflower/TableCell.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/fakturo/includes/libs/dompdf/src/FrameReflower/ListBullet.php:18
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\BinaryStream' not found in wp-content/plugins/fakturo/includes/libs/dompdf/lib/php-font-lib/src/FontLib/Header.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/fakturo/docs/fktr_sale-help.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/fakturo/docs/edit-fktr_countries-help.php:15
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/fakturo/includes/libs/dompdf/lib/php-font-lib/src/FontLib/WOFF/File.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/fakturo/docs/fakturo_page_fakturo-settings-help.php:15
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\DirectoryEntry' not found in wp-content/plugins/fakturo/includes/libs/dompdf/lib/php-font-lib/src/FontLib/WOFF/TableDirectoryEntry.php:18
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameDecorator\\AbstractFrameDecorator' not found in wp-content/plugins/fakturo/includes/libs/dompdf/src/FrameDecorator/Image.php:20
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSList' not found in wp-content/plugins/fakturo/includes/libs/dompdf/lib/php-css-parser/lib/Sabberworm/CSS/CSSList/CSSBlockList.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Screenshot #1 (Adding a Product.) image missing
- Donate link: Invalid URI ("")
- Tags: There are too many tags (25 tag instead of maximum 10)
fakturo/fakturo.php Passed 13 tests
This is the main PHP file of "Fakturo" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
81 characters long description:
Make invoices with products and clients. If you like it, please rate it 5 stars.
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .as - Adobe Flash ActionScript File in Adobe Flash
- ☣ wp-content/plugins/fakturo/assets/js/webcamjs-master/flash/mx/utils/Base64Encoder.as
- ☣ wp-content/plugins/fakturo/assets/js/webcamjs-master/flash/com/adobe/images/BitString.as
- ☣ wp-content/plugins/fakturo/assets/js/webcamjs-master/flash/com/adobe/images/JPGEncoder.as
- ☣ wp-content/plugins/fakturo/assets/js/webcamjs-master/flash/com/adobe/images/PNGEncoder.as
- ☣ wp-content/plugins/fakturo/assets/js/webcamjs-master/flash/Webcam.as
- .as - Adobe Flash ActionScript File in Adobe Flash
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 269 | 11,661 | 17,339 | 91,572 |
JavaScript | 116 | 5,887 | 4,415 | 33,318 |
PO File | 1 | 1,301 | 1,686 | 3,268 |
CSS | 26 | 446 | 104 | 2,979 |
HTML | 24 | 192 | 75 | 2,451 |
Markdown | 10 | 544 | 0 | 1,617 |
ActionScript | 5 | 154 | 354 | 903 |
JSON | 7 | 2 | 0 | 204 |
XML | 3 | 2 | 2 | 113 |
YAML | 2 | 8 | 2 | 48 |
SVG | 1 | 0 | 0 | 8 |
Bourne Shell | 1 | 2 | 2 | 2 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 652)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 38.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 807.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 652.00 |
Code structure | ||
---|---|---|
Namespaces | 31 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 222 | |
▷ Abstract classes | 12 | 5.41% |
▷ Concrete classes | 210 | 94.59% |
▷ Final classes | 0 | 0.00% |
Methods | 2,568 | |
▷ Static methods | 629 | 24.49% |
▷ Public methods | 2,262 | 88.08% |
▷ Protected methods | 228 | 8.88% |
▷ Private methods | 78 | 3.04% |
Functions | 51 | |
▷ Named functions | 35 | 68.63% |
▷ Anonymous functions | 16 | 31.37% |
Constants | 190 | |
▷ Global constants | 8 | 4.21% |
▷ Class constants | 182 | 95.79% |
▷ Public constants | 182 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.62MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default_product.png | 103.13KB | 35.66KB | ▼ 65.42% |
screenshot-4.png | 62.23KB | 24.86KB | ▼ 60.06% |
assets/images/about-header.png | 11.72KB | 5.26KB | ▼ 55.15% |
assets/images/demo.png | 80.45KB | 28.52KB | ▼ 64.55% |
screenshot-5.png | 79.07KB | 37.62KB | ▼ 52.43% |