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.08MB] [CPU: ▲6.28ms] Passed 4 tests
A check of server-side resources used by Sales Layer Microsites
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 48.13 ▲5.10 |
Dashboard /wp-admin | 3.43 ▲0.12 | 58.68 ▲9.95 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 59.42 ▲9.21 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 99.48 ▲6.01 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.62 ▲4.81 |
How to Start? /wp-admin/admin.php?page=slyrmc_menu | 3.30 | 40.30 |
Configuration /wp-admin/admin.php?page=slyrmc_config | 3.34 | 41.47 |
Server storage [IO: ▲2.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 64 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
SLYRMC_unique_token |
widget_theysaidso_widget |
widget_recent-posts |
SLYRMC_version |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sales Layer Microsites
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,851 ▲80 | 14.47 ▼0.08 | 1.87 ▼0.37 | 41.26 ▼4.35 |
Dashboard /wp-admin | 2,235 ▲47 | 5.84 ▲0.96 | 102.82 ▼0.84 | 72.44 ▲32.10 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 2.00 ▼0.05 | 38.56 ▼3.28 | 37.67 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,544 ▲30 | 22.11 ▲4.55 | 676.23 ▼4.82 | 54.43 ▼5.06 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.21 ▼0.03 | 102.35 ▼6.89 | 79.61 ▲31.35 |
How to Start? /wp-admin/admin.php?page=slyrmc_menu | 866 | 2.02 | 24.68 | 34.66 |
Configuration /wp-admin/admin.php?page=slyrmc_config | 849 | 2.06 | 27.20 | 33.82 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=slyrmc_config
- > Notice in wp-content/plugins/sales-layer-wp-microsites/config.php+18
Undefined index: slyr
- > GET request to /wp-admin/admin.php?page=slyrmc_config
- > Notice in wp-content/plugins/sales-layer-wp-microsites/config.php+18
Trying to access array offset on value of type null
SRP 0% 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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/sales-layer-wp-microsites/catalog.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 53
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 65
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 114
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 87
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 109
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 101
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 42
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 58
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 79
- > PHP Notice
Undefined variable: print_data in wp-content/plugins/sales-layer-wp-microsites/catalog.php on line 71
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: pim, product management, automation, catalog management, content management...
sales-layer-wp-microsites/controller.php 92% from 13 tests
The main PHP script in "Sales Layer Microsites" version 1.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sales-layer-wp-microsites.php" instead of "controller.php")
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
Everything looks great! No dangerous files found in this plugin13,172 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 424 | 172 | 8,048 |
PHP | 12 | 1,530 | 918 | 3,870 |
SVG | 2 | 0 | 0 | 699 |
JavaScript | 3 | 234 | 47 | 516 |
Markdown | 1 | 8 | 0 | 39 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 116)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.74 |
Average class complexity | 142.83 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 553.00 |
Average method complexity | 6.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 116.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 153 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 121 | 79.08% |
▷ Protected methods | 2 | 1.31% |
▷ Private methods | 30 | 19.61% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 11 | 73.33% |
▷ Class constants | 4 | 26.67% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 1.12MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/switch/mask-square.png | 0.19KB | 0.18KB | ▼ 2.63% |
images/logo_head_connector.png | 1.18KB | 1.11KB | ▼ 6.36% |
css/close.png | 0.25KB | 0.28KB | 0.00% |
images/switch/mask.png | 0.40KB | 0.41KB | 0.00% |
images/screenshot-1.png | 434.26KB | 131.51KB | ▼ 69.72% |