Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼5.34ms] Passed 4 tests
An overview of server-side resources used by dotenv
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.49 ▼7.77 |
Dashboard /wp-admin | 3.49 ▲0.14 | 50.41 ▼11.62 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.34 ▼0.94 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 91.06 ▼1.03 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.07 ▼0.16 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
dotenv: 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,800 ▲43 | 13.22 ▼1.18 | 5.04 ▲3.00 | 40.85 ▼8.63 |
Dashboard /wp-admin | 2,209 ▲24 | 4.88 ▲0.00 | 110.13 ▲5.03 | 41.62 ▼2.05 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.04 | 39.73 ▼2.29 | 37.48 ▲3.10 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.21 ▼0.20 | 658.84 ▼46.42 | 62.95 ▼3.04 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.03 | 94.06 ▼14.20 | 42.88 ▼7.77 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
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
The following issues need your attention
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Store\\StoreInterface' not found in wp-content/plugins/dotenv/vendor/vlucas/phpdotenv/src/Store/StringStore.php:7
- > PHP Fatal error
Uncaught Error: Class 'PhpOption\\Option' not found in wp-content/plugins/dotenv/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/dotenv/vendor/vlucas/phpdotenv/src/Exception/InvalidPathException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Exception\\ExceptionInterface' not found in wp-content/plugins/dotenv/vendor/vlucas/phpdotenv/src/Exception/InvalidFileException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\RepositoryInterface' not found in wp-content/plugins/dotenv/vendor/vlucas/phpdotenv/src/Repository/AdapterRepository.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/dotenv/vendor/vlucas/phpdotenv/src/Repository/Adapter/AdapterInterface.php:7
- > PHP Fatal error
Uncaught Error: Class 'GrahamCampbell\\ResultType\\Result' not found in wp-content/plugins/dotenv/vendor/graham-campbell/result-type/src/Success.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\WriterInterface' not found in wp-content/plugins/dotenv/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReplacingWriter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\AdapterInterface' not found in wp-content/plugins/dotenv/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Dotenv\\Repository\\Adapter\\ReaderInterface' not found in wp-content/plugins/dotenv/vendor/vlucas/phpdotenv/src/Repository/Adapter/MultiReader.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: configuration, developer, environment, config, tools
dotenv/dotenv.php 92% from 13 tests
The main PHP file in "dotenv" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/lang/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin7,364 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 1,034 | 2,491 | 6,580 |
JSON | 7 | 0 | 0 | 732 |
Markdown | 3 | 13 | 0 | 36 |
make | 1 | 7 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 8.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 162.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 40 | 83.33% |
Methods | 352 | |
▷ Static methods | 136 | 38.64% |
▷ Public methods | 302 | 85.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 50 | 14.20% |
Functions | 128 | |
▷ Named functions | 76 | 59.38% |
▷ Anonymous functions | 52 | 40.62% |
Constants | 24 | |
▷ Global constants | 4 | 16.67% |
▷ Class constants | 20 | 83.33% |
▷ Public constants | 9 | 45.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin