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
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼291.85ms] Passed 4 tests
A check of server-side resources used by abrestan Accounting
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.19 | 54.82 ▼0.39 |
Dashboard /wp-admin | 3.54 ▲0.13 | 33.58 ▲0.45 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 41.11 ▲4.37 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 91.83 ▼1,167.16 |
Media Library /wp-admin/upload.php | 3.42 ▲0.13 | 24.80 ▼0.28 |
Server storage [IO: ▲3.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_abrestan_event |
wp_abrestan_order |
New WordPress options |
---|
abrestan_db_option |
Browser metrics Passed 4 tests
Checking browser requirements for abrestan Accounting
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲5 | 16.14 ▲0.51 | 6.37 ▲0.16 | 2.56 ▼1.53 |
Dashboard /wp-admin | 2,895 ▲41 | 6.19 ▲0.01 | 118.63 ▼19.82 | 156.24 ▼10.39 |
Posts /wp-admin/edit.php | 2,694 ▼0 | 3.24 ▼0.00 | 69.76 ▲4.12 | 147.69 ▲6.07 |
Add New Post /wp-admin/post-new.php | 1,773 ▲75 | 21.40 ▼1.10 | 443.50 ▲44.25 | 160.53 ▲7.55 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.51 ▲0.00 | 147.62 ▲10.02 | 188.10 ▼4.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_abrestan_event
- wp_abrestan_order
- This plugin did not uninstall successfully, leaving 1 option in the database
- abrestan_db_option
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/abrestan/templates/admin/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
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.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin29,543 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 | 521 | 298 | 2,779 |
JavaScript | 4 | 354 | 163 | 1,617 |
PO File | 2 | 47 | 55 | 144 |
JSON | 2 | 0 | 0 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.95 |
▷ 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 | 101 | |
▷ Static methods | 21 | 20.79% |
▷ Public methods | 98 | 97.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.97% |
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
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 |
assets/images/logo-abrestan.png | 2.74KB | 1.43KB | ▼ 47.84% |