Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▲1.09ms] Passed 4 tests
Server-side resources used by abrestan Accounting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 47.37 ▲4.03 |
Dashboard /wp-admin | 3.33 ▲0.03 | 55.10 ▲4.67 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.47 ▼4.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 99.24 ▲9.71 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.46 ▲0.60 |
Server storage [IO: ▲3.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 73 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_abrestan_order |
wp_abrestan_event |
New WordPress options |
---|
abrestan_db_option |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for abrestan Accounting
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▼0.19 | 1.80 ▲0.20 | 43.44 ▼1.58 |
Dashboard /wp-admin | 2,198 ▲18 | 5.58 ▼0.09 | 89.52 ▼2.23 | 42.34 ▼0.37 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▼0.01 | 33.99 ▼3.02 | 32.78 ▲0.37 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.27 ▼0.40 | 699.58 ▼18.54 | 63.23 ▼8.17 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.02 | 93.00 ▼13.24 | 44.03 ▼0.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_abrestan_order
- wp_abrestan_event
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- abrestan_db_option
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/abrestan/templates/admin/admin.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (login setting page), #2 (select company setting page), #3 (sync orders setting page)
abrestan/abrestan.php 92% from 13 tests
"abrestan Accounting" version 2.2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("5.2" instead of "4.1.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected29,632 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 602 | 6,062 | 22,017 |
SVG | 2 | 0 | 0 | 2,959 |
PHP | 35 | 556 | 298 | 2,870 |
JavaScript | 4 | 356 | 163 | 1,615 |
PO File | 2 | 47 | 55 | 144 |
JSON | 2 | 0 | 0 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 11.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 1 | 3.57% |
Methods | 102 | |
▷ Static methods | 21 | 20.59% |
▷ Public methods | 99 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.94% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
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 |
assets/images/logo-abrestan.png | 2.74KB | 1.43KB | ▼ 47.84% |