Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.91MB] [CPU: ▼54.24ms] Passed 4 tests
A check of server-side resources used by Easy Digital Downloads - htaccess Editor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.05 ▼36.35 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.57 ▼42.13 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.67 ▼47.21 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.73 ▼91.28 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.87 ▼27.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Digital Downloads - htaccess Editor
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.25 ▼0.02 | 1.73 ▼0.11 | 43.35 ▼7.15 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.00 | 86.19 ▼7.41 | 42.44 ▼2.34 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.02 | 33.75 ▼3.39 | 34.41 ▼3.31 |
Add New Post /wp-admin/post-new.php | 1,531 ▼0 | 22.91 ▼0.54 | 696.41 ▲51.44 | 53.46 ▲2.96 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▲0.07 | 102.54 ▼7.55 | 44.16 ▼0.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/easy-digital-downloads-htaccess-editor/edd-htaccess-editor.php+255
Undefined property: EDD_Extension_Activation::$run
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: easy digital downloads, rules, htaccess
easy-digital-downloads-htaccess-editor/edd-htaccess-editor.php 92% from 13 tests
The main PHP script in "Easy Digital Downloads - htaccess Editor" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("easy-digital-downloads-htaccess-editor.php" instead of "edd-htaccess-editor.php")
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
Success! There were no dangerous files found in this plugin153 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 143 | 145 |
Markdown | 1 | 5 | 0 | 8 |
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.25 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected