Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.11MB] [CPU: ▼0.84ms] Passed 4 tests
Server-side resources used by SimpleShop
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.89 | 44.26 ▼4.83 |
Dashboard /wp-admin | 4.52 ▲1.18 | 57.04 ▼0.47 |
Posts /wp-admin/edit.php | 4.58 ▲1.21 | 50.17 ▲3.02 |
Add New Post /wp-admin/post-new.php | 7.06 ▲1.17 | 94.55 ▼1.06 |
Media Library /wp-admin/upload.php | 4.45 ▲1.22 | 45.20 ▲10.65 |
Settings /wp-admin/admin.php?page=ssc_options | 4.91 | 49.67 |
Member sections /wp-admin/edit.php?post_type=ssc_group | 4.49 | 42.94 |
Server storage [IO: ▲3.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 414 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
ssc_plugin_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
ssc_cache_products |
Browser metrics Passed 4 tests
SimpleShop: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.20 ▲0.02 | 1.60 ▼0.08 | 37.37 ▼6.56 |
Dashboard /wp-admin | 2,236 ▲55 | 5.53 ▼0.19 | 90.10 ▼10.74 | 82.16 ▲40.90 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 1.99 ▼0.02 | 34.82 ▼2.20 | 33.84 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6,400 ▲4,874 | 22.54 ▼0.41 | 897.78 ▲213.04 | 68.71 ▲1.40 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.24 ▼0.08 | 93.41 ▼10.60 | 80.23 ▲33.84 |
Settings /wp-admin/admin.php?page=ssc_options | 1,777 | 6.94 | 133.33 | 75.34 |
Member sections /wp-admin/edit.php?post_type=ssc_group | 1,116 | 1.92 | 31.40 | 26.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 8 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- ssc_plugin_version
- ssc_cache_products
- db_upgraded
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simpleshop-cz/vendor/cmb2/cmb2/includes/helper-functions.php:131
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simpleshop-cz/vendor/webdevstudios/cmb2-post-search-field/cmb2_post_search_field.php:106
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/simpleshop-cz/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/simpleshop-cz/vendor/cmb2/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/simpleshop-cz/vendor/cmb2/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/simpleshop-cz/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simpleshop-cz/vendor/webdevstudios/cmb2-post-search-field/cmb2_post_search_field.php:106
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/simpleshop-cz/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simpleshop-cz/vendor/cmb2/cmb2/example-functions.php:105
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/simpleshop-cz/vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: selling form, simpleshop, membership, access control, simpleshopcz...
simpleshop-cz/simpleshop-cz.php 92% from 13 tests
Analyzing the main PHP file in "SimpleShop" version 2.9.1
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin58,353 lines of code in 260 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 88 | 2,910 | 7,911 | 10,451 |
JSON | 5 | 0 | 0 | 6,849 |
CSS | 15 | 251 | 1,213 | 4,577 |
JavaScript | 11 | 401 | 593 | 1,942 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 4 | 259 | 0 | 800 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 18.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 9 | 9.78% |
▷ Concrete classes | 83 | 90.22% |
▷ Final classes | 0 | 0.00% |
Methods | 744 | |
▷ Static methods | 115 | 15.46% |
▷ Public methods | 634 | 85.22% |
▷ Protected methods | 100 | 13.44% |
▷ Private methods | 10 | 1.34% |
Functions | 41 | |
▷ Named functions | 36 | 87.80% |
▷ Anonymous functions | 5 | 12.20% |
Constants | 82 | |
▷ Global constants | 8 | 9.76% |
▷ Class constants | 74 | 90.24% |
▷ Public constants | 74 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/webdevstudios/cmb2-post-search-field/post-search-field.png | 18.07KB | 5.58KB | ▼ 69.11% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vendor/cmb2/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |