Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.04MB] [CPU: ▲2.21ms] Passed 4 tests
Server-side resources used by StoreContrl Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.47 ▲1.01 | 43.95 ▲4.45 |
Dashboard /wp-admin | 4.37 ▲1.02 | 52.75 ▼10.62 |
Posts /wp-admin/edit.php | 4.42 ▲1.06 | 54.70 ▲6.93 |
Add New Post /wp-admin/post-new.php | 6.97 ▲1.08 | 107.87 ▲8.08 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 44.14 ▲9.40 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for StoreContrl Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲115 | 14.68 ▼0.08 | 1.71 ▲0.03 | 36.41 ▼7.60 |
Dashboard /wp-admin | 2,267 ▲93 | 5.59 ▲0.00 | 94.55 ▼6.79 | 101.87 ▲55.69 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 2.01 ▲0.06 | 46.91 ▲9.93 | 47.68 ▲10.98 |
Add New Post /wp-admin/post-new.php | 1,522 ▼4 | 18.55 ▼4.34 | 684.62 ▼72.26 | 42.58 ▼12.19 |
Media Library /wp-admin/upload.php | 1,484 ▲84 | 4.23 ▲0.04 | 102.22 ▲6.19 | 81.92 ▲39.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- 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)
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/storecontrl-wp-connection/includes/admin/partials/storecontrl_wp_connection_settings_page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (API instellingen), #2 (Configuratie instellingen), #3 (Status en logging)
storecontrl-wp-connection/storecontrl-wp-connection.php 92% from 13 tests
Analyzing the main PHP file in "StoreContrl Woocommerce" version 4.0.8
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 309 characters long)
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin6,334 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 1,161 | 518 | 5,251 |
PO File | 1 | 174 | 235 | 537 |
CSS | 5 | 30 | 26 | 280 |
JavaScript | 6 | 78 | 52 | 265 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 103.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 368.00 |
Average method complexity | 7.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 159 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 147 | 92.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 7.55% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
3 PNG files occupy 0.35MB with 0.24MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/img/screenshot_2.png | 137.85KB | 46.08KB | ▼ 66.58% |
includes/admin/img/screenshot_1.png | 97.74KB | 28.71KB | ▼ 70.63% |
includes/admin/img/screenshot_3.png | 122.62KB | 41.68KB | ▼ 66.01% |