Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.21MB] [CPU: ▲0.07ms] Passed 4 tests
Analyzing server-side resources used by DoMyAccounting
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 46.30 ▲5.38 |
Dashboard /wp-admin | 3.51 ▲0.20 | 54.50 ▲9.32 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.29 ▼0.74 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 86.11 ▼13.69 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 49.49 ▲15.73 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by DoMyAccounting
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 14.81 ▲0.23 | 1.76 ▲0.09 | 44.05 ▼1.13 |
Dashboard /wp-admin | 2,221 ▲36 | 5.83 ▼0.02 | 109.90 ▲12.50 | 72.35 ▲28.96 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.01 ▼0.05 | 35.89 ▼0.67 | 32.10 ▲0.72 |
Add New Post /wp-admin/post-new.php | 1,682 ▲149 | 22.26 ▼1.06 | 766.32 ▲160.75 | 54.26 ▲2.48 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.21 ▼0.00 | 98.55 ▲1.74 | 74.28 ▲31.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, 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
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
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
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/domyaccounting/templates/admin/rtwdma-advance.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/domyaccounting/templates/admin/rtwdma-help.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/domyaccounting/templates/admin/rtwdma-automation.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/domyaccounting/templates/admin/rtwdma-one-click-sync.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/domyaccounting/templates/admin/rtwdma-basic.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/domyaccounting/admin/partials/rtwdma-domyaccounting-admin-display.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/domyaccounting/admin/partials/rtwdma-license-verification.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
domyaccounting/domyaccounting.php 85% from 13 tests
"DoMyAccounting" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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,495 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 253 | 702 | 1,540 |
CSS | 1 | 3 | 8 | 588 |
JavaScript | 1 | 25 | 0 | 367 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 39.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 90.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.62% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
13 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/support.png | 9.10KB | 4.14KB | ▼ 54.56% |
admin/images/document.png | 9.51KB | 4.39KB | ▼ 53.87% |
admin/images/faq.png | 9.66KB | 4.48KB | ▼ 53.62% |
admin/images/icon.png | 3.98KB | 0.59KB | ▼ 85.04% |
admin/images/skype.png | 12.59KB | 4.74KB | ▼ 62.39% |