Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.49MB] [CPU: ▼15.67ms] Passed 4 tests
An overview of server-side resources used by SME Accounting - One Stop Business & Accounting Solution For SMEs From Anywhere Around The World
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 39.08 ▼3.57 |
Dashboard /wp-admin | 3.56 ▲0.25 | 48.94 ▼4.07 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 54.41 ▲2.92 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.54 | 38.98 ▼55.53 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 38.68 ▲0.50 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
SME Accounting - One Stop Business & Accounting Solution For SMEs From Anywhere Around The World: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.22 ▼1.17 | 1.65 ▼0.44 | 41.08 ▼2.99 |
Dashboard /wp-admin | 2,209 ▲21 | 4.88 ▼1.05 | 99.92 ▼14.99 | 44.97 ▼2.00 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 38.06 ▼0.46 | 38.43 ▲6.23 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.20 ▲0.04 | 660.18 ▼26.81 | 52.01 ▼1.16 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.24 ▲0.03 | 109.78 ▲6.08 | 49.02 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/tests/bootstrap.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/tests/Test_WP_Background_Process.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sme-accounting/views/footer.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/tests/Test_Setup.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sme-accounting/views/woocommerce.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/wp-background-processing.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sme-accounting/views/admin.php:4
- > PHP Fatal error
Uncaught Error: Class 'SMEVai\\Core\\Base' not found in wp-content/plugins/sme-accounting/includes/Core/Admin.php:6
- > PHP Fatal error
Uncaught Error: Class 'SMEVai\\Core\\Base' not found in wp-content/plugins/sme-accounting/includes/Core/Module.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/sme-accounting/vendor/deliciousbrains/wp-background-processing/classes/wp-background-process.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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: bookkeeping, business, f-commerce, accounting, sales...
sme-accounting/sme-accounting.php Passed 13 tests
The main file in "SME Accounting - One Stop Business & Accounting Solution For SMEs From Anywhere Around The World" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
79 characters long description:
One Stop Business & Accounting Solution For SMEs From Anywhere Around The World
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin2,831 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 466 | 1,254 | 2,042 |
Markdown | 1 | 124 | 0 | 252 |
Bourne Shell | 1 | 23 | 11 | 147 |
CSS | 1 | 17 | 0 | 147 |
YAML | 1 | 13 | 0 | 80 |
JSON | 1 | 0 | 0 | 59 |
XML | 2 | 7 | 16 | 57 |
SVG | 4 | 0 | 0 | 33 |
make | 1 | 4 | 0 | 14 |
PHP code Passed 2 tests
Analyzing 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.25 |
Average class complexity | 14.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 4 | 28.57% |
▷ Concrete classes | 10 | 71.43% |
▷ Final classes | 1 | 10.00% |
Methods | 157 | |
▷ Static methods | 21 | 13.38% |
▷ Public methods | 125 | 79.62% |
▷ Protected methods | 25 | 15.92% |
▷ Private methods | 7 | 4.46% |
Functions | 22 | |
▷ Named functions | 2 | 9.09% |
▷ Anonymous functions | 20 | 90.91% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
assets/images/menu-icon.png | 3.80KB | 0.57KB | ▼ 85.12% |
assets/images/logo.png | 1.68KB | 1.15KB | ▼ 31.55% |