Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.44ms] Passed 4 tests
Analyzing server-side resources used by Envs Switcher
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.99 ▼6.69 |
Dashboard /wp-admin | 3.41 ▲0.07 | 49.76 ▼16.75 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 54.45 ▲0.13 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 89.91 ▼6.43 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 42.75 ▲5.54 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please fix the following
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/envs-switcher/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 13 new files
Database: no new tables, 14 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
slwsu_envs_switcher_test |
slwsu_envs_switcher_demonstration |
widget_recent-comments |
slwsu_envs_switcher_environement |
widget_theysaidso_widget |
slwsu_envs_switcher_grouper |
slwsu_envs_switcher_production |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Envs Switcher
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲83 | 13.64 ▼0.73 | 1.60 ▼0.33 | 38.61 ▼2.80 |
Dashboard /wp-admin | 2,239 ▲36 | 5.79 ▲0.94 | 111.44 ▲1.14 | 43.45 ▲2.24 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.06 ▲0.04 | 40.50 ▼1.18 | 35.72 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,562 ▲17 | 23.41 ▲0.33 | 660.64 ▲0.71 | 57.55 ▲4.14 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.20 ▼0.00 | 103.41 ▲0.57 | 42.08 ▼0.07 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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:
- Screenshots: Add images for these screenshots: #1 (Activate the plugin), #2 (Click Settings to change the predefined configuration.), #3 (Fill out the details of seized and validate.), #4 (The button should normally be functional.)
envs-switcher/envs-switcher.php 92% from 13 tests
The main file in "Envs Switcher" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected694 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 122 | 170 | 563 |
PO File | 1 | 49 | 49 | 131 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 13 | 29.55% |
▷ Public methods | 39 | 88.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.36% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
There were not PNG files found in your plugin