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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼301.55ms] Passed 4 tests
This is a short check of server-side resources used by DMG Post Archives Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 29.02 ▲6.84 |
Dashboard /wp-admin | 3.07 ▲0.01 | 42.17 ▲0.99 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 41.78 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 90.70 ▼1,204.33 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 31.91 ▼2.36 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_dmg_archives_widget |
Browser metrics Passed 4 tests
DMG Post Archives Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲72 | 15.89 ▲0.41 | 7.55 ▼1.50 | 48.43 ▲4.58 |
Dashboard /wp-admin | 2,959 ▲106 | 6.08 ▲0.18 | 131.02 ▲1.11 | 111.67 ▲9.51 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.69 ▲0.01 | 68.15 ▲1.88 | 92.37 ▲9.66 |
Add New Post /wp-admin/post-new.php | 1,653 ▼200 | 18.62 ▼0.55 | 362.05 ▼1.80 | 109.04 ▲2.06 |
Media Library /wp-admin/upload.php | 1,778 ▲9 | 5.02 ▲0.03 | 145.74 ▼1.68 | 109.95 ▼4.85 |
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
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_dmg_archives_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'DMG\\WP_Widget_Base\\WP_Widget_Base' not found in wp-content/plugins/dmg-archives-widget/src/WP_Archives_Widget.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dmg-archives-widget/vendor/DMG/WP_Widget_Base/src/WP_Widget_Base.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
5 plugin tags: menu, css, archives widget, list archives, monthly
dmg-archives-widget/dmg-archives-widget.php 92% from 13 tests
The principal PHP file in "DMG Post Archives Widget" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
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
No dangerous file extensions were detected359 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 158 | 88 | 330 |
JSON | 1 | 4 | 0 | 18 |
Markdown | 2 | 4 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin