Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php+798
Undefined index: asm_MSLS_Grouping_Class
Server metrics [RAM: ▼1.74MB] [CPU: ▼54.05ms] Passed 4 tests
Analyzing server-side resources used by MSLS Grouping
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.20 | 5.43 ▼32.17 |
Dashboard /wp-admin | 2.28 ▼1.06 | 7.31 ▼53.56 |
Posts /wp-admin/edit.php | 2.28 ▼1.07 | 6.74 ▼43.12 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.61 | 8.93 ▼87.35 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 5.78 ▼26.65 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_samelangsites |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for MSLS Grouping
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.24 ▼1.44 | 1.77 ▲0.21 | 42.30 ▲3.20 |
Dashboard /wp-admin | 2,249 ▲60 | 5.88 ▲0.84 | 104.70 ▼15.25 | 44.37 ▲1.04 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.13 ▲0.09 | 42.64 ▲0.35 | 31.58 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,520 ▼9 | 17.64 ▼0.56 | 634.69 ▲6.09 | 68.35 ▲12.84 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.22 ▲0.02 | 100.85 ▲1.35 | 44.80 ▼0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php+798
Undefined index: asm_MSLS_Grouping_Class
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_samelangsites
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php:108
- > PHP Notice
Undefined index: asm_MSLS_Grouping_Class in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php on line 798
- > PHP Notice
Undefined index: asm_MSLS_Grouping_Class in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php on line 798
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/msls-gouping/inc/asm-MSLS-Grouping.php:108
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/msls-gouping/inc/dictionary.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (e.g. Sites List.), #2 (Multisite Language Switcher Options.), #3 (Set "group_key".), #4 (Widget "SameLangSites".), #5 (Shortcode "SameLangSites".), #6 (e.g. English Site.), #7 (e.g. Japanese Site.), #8 (Language flags in Admin-Bar.)
msls-gouping/asm-MSLS-Grouping.php 85% from 13 tests
This is the main PHP file of "MSLS Grouping" version 0.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("msls-gouping.php" instead of "asm-MSLS-Grouping.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected707 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 97 | 287 | 589 |
PO File | 2 | 30 | 30 | 118 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 49.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin