Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▲1.90ms] Passed 4 tests
Server-side resources used by Mamurjor Invoice
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 43.14 ▼2.25 |
Dashboard /wp-admin | 3.42 ▲0.12 | 54.72 ▲2.35 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.79 ▲4.56 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 98.91 ▲3.87 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 41.85 ▲3.64 |
Invoice Setting /wp-admin/admin.php?page=invoice_setting | 3.31 | 36.80 |
invoice /wp-admin/admin.php?page=invoice | 3.31 | 37.31 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_mamurjor_invoice |
wp_mamurjor_invoice_details |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mamurjor Invoice
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,052 ▲291 | 13.80 ▼0.49 | 8.12 ▲6.24 | 29.45 ▼17.18 |
Dashboard /wp-admin | 2,342 ▲171 | 5.99 ▲0.39 | 101.66 ▼1.64 | 48.68 ▲6.00 |
Posts /wp-admin/edit.php | 2,247 ▲147 | 2.20 ▲0.17 | 36.67 ▼1.65 | 40.28 ▲4.30 |
Add New Post /wp-admin/post-new.php | 1,658 ▲118 | 23.40 ▲0.58 | 524.42 ▼155.10 | 30.37 ▼28.70 |
Media Library /wp-admin/upload.php | 1,547 ▲150 | 4.61 ▲0.36 | 99.76 ▼11.55 | 49.04 ▲4.55 |
Invoice Setting /wp-admin/admin.php?page=invoice_setting | 994 | 2.26 | 26.50 | 36.28 |
invoice /wp-admin/admin.php?page=invoice | 1,151 | 2.27 | 28.28 | 36.42 |
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
- The uninstall procedure failed, leaving 2 tables in the database
- wp_mamurjor_invoice
- wp_mamurjor_invoice_details
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/mamurjor-invoice/admin/partials/mamurjor_invoice-admin-display.php
- > /wp-content/plugins/mamurjor-invoice/public/partials/mamurjor_invoice-public-display.php
- > /wp-content/plugins/mamurjor-invoice/admin/admin.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is stored in the /assets directory.), #2 (This is the second screen shot)
mamurjor-invoice/mamurjor_invoice.php 85% from 13 tests
The primary PHP file in "Mamurjor Invoice" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mamurjor-invoice.php" instead of "mamurjor_invoice.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin866 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 285 | 554 | 704 |
JavaScript | 3 | 52 | 97 | 145 |
CSS | 3 | 1 | 8 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin