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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.01ms] Passed 4 tests
This is a short check of server-side resources used by My Online Fashion Store
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 43.35 ▲6.49 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.63 ▼2.00 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 54.03 ▲6.87 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 100.52 ▼22.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.91 ▲6.02 |
Server storage [IO: ▲1.82MB] [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: 58 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_myofs_products |
New WordPress options |
---|
myofs_db_installed |
widget_theysaidso_widget |
myofs_opt_data |
can_compress_scripts |
widget_recent-posts |
myofs_db_version |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for My Online Fashion Store
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲46 | 14.05 ▼0.30 | 1.72 ▲0.04 | 41.66 ▼1.97 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.05 | 85.12 ▼6.02 | 39.79 ▼5.69 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.94 ▼0.08 | 40.14 ▲4.76 | 36.79 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.01 ▼0.35 | 583.09 ▼12.93 | 51.68 ▲2.61 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.28 ▼0.00 | 99.39 ▲1.64 | 45.04 ▲2.71 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- myofs_db_installed
- widget_theysaidso_widget
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function load_template() in wp-content/plugins/my-online-fashion-store/templates/myofs-my-inventory-page.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/my-online-fashion-store/templates/myofs-activation-key-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/my-online-fashion-store/templates/myofs-menus-page.php:4
- > PHP Fatal error
Uncaught Error: Class 'MYOFS_API' not found in wp-content/plugins/my-online-fashion-store/templates/myofs-upgrade-save-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'MYOFS_API' not found in wp-content/plugins/my-online-fashion-store/templates/myofs-sidebar-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_template() in wp-content/plugins/my-online-fashion-store/templates/myofs-returns-page.php:3
- > PHP Fatal error
Uncaught Error: Class 'MYOFS_API' not found in wp-content/plugins/my-online-fashion-store/templates/myofs-my-orders-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_template() in wp-content/plugins/my-online-fashion-store/templates/myofs-my-account-page.php:3
- > PHP Fatal error
Uncaught Error: Class 'MYOFS_API' not found in wp-content/plugins/my-online-fashion-store/templates/myofs-marketing-marterial-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_template() in wp-content/plugins/my-online-fashion-store/templates/myofs-help-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
my-online-fashion-store/my-online-fashion-store.php 92% from 13 tests
The main PHP script in "My Online Fashion Store" version 1.0.21 is automatically included on every request by WordPress
You should first fix the following items:
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin15,889 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 2,201 | 509 | 8,754 |
PHP | 26 | 250 | 578 | 3,425 |
CSS | 8 | 173 | 82 | 3,069 |
SVG | 2 | 0 | 0 | 641 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 30.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 5.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 5 | 6.85% |
▷ Public methods | 65 | 89.04% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 10.96% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 42 | |
▷ Global constants | 42 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder.png | 4.42KB | 2.45KB | ▼ 44.59% |
assets/images/remove-icon-small.png | 0.19KB | 0.19KB | 0.00% |
assets/public/images/remove-icon-small.png | 0.19KB | 0.19KB | 0.00% |