Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼6.48ms] Passed 4 tests
A check of server-side resources used by Aistore invoicing software
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 36.96 ▲0.08 |
Dashboard /wp-admin | 3.45 ▲0.11 | 45.17 ▼14.19 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 44.88 ▲1.84 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 78.00 ▼13.63 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 36.15 ▲3.43 |
Server storage [IO: ▲10.31MB] [DB: ▲0.09MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 327 new files
Database: 14 new tables, 6 new options
New tables |
---|
wp_aistore_books_vendor_documents |
wp_aistore_books_customer_documents |
wp_aistore_books_invoice |
wp_aistore_books_accounts |
wp_aistore_books_vendor |
wp_aistore_books_wallet_transactions |
wp_aistore_books_notification |
wp_aistore_books_bank |
wp_aistore_books_estimate |
wp_aistore_books_subaccounts |
... |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Aistore invoicing software
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.56 ▼0.83 | 9.24 ▲7.54 | 39.92 ▼0.95 |
Dashboard /wp-admin | 2,211 ▲30 | 5.50 ▼0.24 | 88.89 ▼11.20 | 77.33 ▲34.10 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 1.97 ▲0.01 | 34.89 ▲0.07 | 29.94 ▼4.37 |
Add New Post /wp-admin/post-new.php | 1,569 ▲40 | 18.40 ▼4.81 | 650.44 ▼19.70 | 54.32 ▲0.49 |
Media Library /wp-admin/upload.php | 1,419 ▲25 | 4.21 ▲0.03 | 97.30 ▼1.32 | 72.20 ▲28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.09MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables were found after uninstall: 14 tables
- wp_aistore_books_accounts
- wp_aistore_books_payment
- wp_aistore_books_estimate
- wp_aistore_books_bank
- wp_aistore_books_wallet_transactions
- wp_aistore_books_currency
- wp_aistore_books_customer
- wp_aistore_books_invoice
- wp_aistore_books_notification
- wp_aistore_books_customer_documents
- ...
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/aistore-invoicing-software/aistore_report/aistore_books_report.php
- > /wp-content/plugins/aistore-invoicing-software/aistore_report/aistore_books_bank_transactions.php
- > /wp-content/plugins/aistore-invoicing-software/aistore_lib/aistore_booka_notification.php
- > /wp-content/plugins/aistore-invoicing-software/aistore_report/aistore_books_list_company.php
- 127× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/aistore-invoicing-software/vendor/phenx/php-font-lib/src/FontLib/Table/Type/name.php:19
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/aistore-invoicing-software/vendor/dompdf/dompdf/src/FrameReflower/Page.php:20
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\TrueType\\File' not found in wp-content/plugins/aistore-invoicing-software/vendor/phenx/php-font-lib/src/FontLib/OpenType/File.php:16
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\FrameReflower\\AbstractFrameReflower' not found in wp-content/plugins/aistore-invoicing-software/vendor/dompdf/dompdf/src/FrameReflower/TableRowGroup.php:19
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/aistore-invoicing-software/vendor/phenx/php-font-lib/src/FontLib/Table/Type/hmtx.php:17
- > PHP Fatal error
Uncaught Error: Class 'FontLib\\Table\\Table' not found in wp-content/plugins/aistore-invoicing-software/vendor/phenx/php-font-lib/src/FontLib/Table/Type/head.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Sabberworm\\CSS\\Property\\AtRule' not found in wp-content/plugins/aistore-invoicing-software/vendor/sabberworm/php-css-parser/src/Property/Import.php:12
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Value\\Value' not found in wp-content/plugins/aistore-invoicing-software/vendor/sabberworm/php-css-parser/src/Value/ValueList.php:7
- > PHP Fatal error
Uncaught Error: Class 'Dompdf\\Renderer\\AbstractRenderer' not found in wp-content/plugins/aistore-invoicing-software/vendor/dompdf/dompdf/src/Renderer.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Dompdf\\Canvas' not found in wp-content/plugins/aistore-invoicing-software/vendor/dompdf/dompdf/src/Adapter/GD.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: invoicing
aistore-invoicing-software/index.php 92% from 13 tests
The principal PHP file in "Aistore invoicing software" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aistore-invoicing-software.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin45,706 lines of code in 256 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 235 | 11,490 | 18,132 | 43,758 |
Markdown | 7 | 262 | 0 | 969 |
JSON | 7 | 0 | 0 | 440 |
CSS | 2 | 92 | 44 | 392 |
XML | 1 | 0 | 2 | 86 |
YAML | 1 | 9 | 0 | 35 |
HTML | 1 | 0 | 0 | 17 |
SVG | 1 | 0 | 0 | 8 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 651)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 38.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 809.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 651.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 178 | |
▷ Abstract classes | 12 | 6.74% |
▷ Concrete classes | 166 | 93.26% |
▷ Final classes | 0 | 0.00% |
Methods | 2,028 | |
▷ Static methods | 126 | 6.21% |
▷ Public methods | 1,708 | 84.22% |
▷ Protected methods | 244 | 12.03% |
▷ Private methods | 76 | 3.75% |
Functions | 85 | |
▷ Named functions | 67 | 78.82% |
▷ Anonymous functions | 18 | 21.18% |
Constants | 206 | |
▷ Global constants | 2 | 0.97% |
▷ Class constants | 204 | 99.03% |
▷ Public constants | 204 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/dompdf/dompdf/lib/res/broken_image.png | 0.60KB | 0.47KB | ▼ 22.33% |