Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.05ms] Passed 4 tests
Analyzing server-side resources used by Attach Excel Invoice WOOC - WPSHARE247
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.27 ▲2.62 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.83 ▼1.64 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 48.82 ▼4.01 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 87.03 ▼17.16 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.12 ▲3.65 |
Configure AEIWOOC /wp-admin/admin.php?page=Aeiwooc-options | 3.29 | 35.42 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Attach Excel Invoice WOOC - WPSHARE247
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.45 ▲0.08 | 1.72 ▼0.07 | 41.07 ▼1.81 |
Dashboard /wp-admin | 2,218 ▲41 | 5.88 ▲0.15 | 97.01 ▲3.70 | 41.00 ▼3.21 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.32 ▲0.31 | 42.16 ▲4.96 | 34.74 ▼3.27 |
Add New Post /wp-admin/post-new.php | 1,544 ▼3 | 23.36 ▲0.80 | 633.40 ▼14.81 | 34.07 ▼14.31 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.50 ▲0.23 | 104.62 ▲5.23 | 41.29 ▼4.87 |
Configure AEIWOOC /wp-admin/admin.php?page=Aeiwooc-options | 840 | 2.10 | 28.77 | 23.99 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
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)
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
Please fix the following items
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant WPSHARE247_CLASS_Aeiwooc - assumed 'WPSHARE247_CLASS_Aeiwooc' (this will throw an Error in a future version of PHP) in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/inc/option-form-template.php on line 2
- > PHP Warning
Use of undefined constant WPSHARE247_AEIWOOC_PLUGIN_INC_DIR - assumed 'WPSHARE247_AEIWOOC_PLUGIN_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/inc/define.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/inc/tabs/tab_pro_general.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/inc/class.setting.page.php:13
- > PHP Warning
Use of undefined constant WPSHARE247_AEIWOOC_PLUGIN_INC_ASSETS_URL - assumed 'WPSHARE247_AEIWOOC_PLUGIN_INC_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/assets/addmin_footer_js.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/inc/class.helper.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/inc/tabs/message.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/inc/theme_functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/inc/tabs/tab_pro_setting.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/attach-excel-invoice-wooc-wpshare247/assets/addmin_footer_js.php:17
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== attach-excel-invoice-wooc-wpshare247 ===
)
attach-excel-invoice-wooc-wpshare247/wpshare247-attach-excel-invoice-wooc.php 85% from 13 tests
Analyzing the main PHP file in "Attach Excel Invoice WOOC - WPSHARE247" version 1.1
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("attach-excel-invoice-wooc-wpshare247.php" instead of "wpshare247-attach-excel-invoice-wooc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,267 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 270 | 84 | 1,816 |
PO File | 1 | 94 | 1 | 203 |
JavaScript | 1 | 30 | 8 | 138 |
SVG | 1 | 0 | 0 | 65 |
CSS | 1 | 2 | 1 | 45 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 27.67 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 15 | 34.09% |
▷ Public methods | 41 | 93.18% |
▷ Protected methods | 3 | 6.82% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 16 | 88.89% |
▷ Class constants | 2 | 11.11% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
25 PNG files occupy 0.47MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/border-style/medium.png | 0.26KB | 0.14KB | ▼ 44.74% |
assets/screenshot-4.png | 43.39KB | 14.05KB | ▼ 67.61% |
assets/excel_logo.png | 28.77KB | 4.11KB | ▼ 85.73% |
assets/border-style/mediumDashed.png | 0.28KB | 0.14KB | ▼ 48.25% |
inc/excel-lib/demo/template-3.xlsx.png | 24.57KB | 12.58KB | ▼ 48.79% |