Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/weekly-archive-widget/weekly-archive-widget.php+52
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼54.35ms] Passed 4 tests
A check of server-side resources used by Weekly Archive Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.72 ▼36.75 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.80 ▼45.96 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.80 ▼43.00 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.25 ▼91.68 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.04 ▼27.46 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_weekly_archive_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Weekly Archive Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.21 ▼1.14 | 1.93 ▲0.22 | 40.25 ▼9.18 |
Dashboard /wp-admin | 2,203 ▲18 | 5.86 ▲0.07 | 95.46 ▼8.55 | 38.25 ▼3.90 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 38.84 ▲1.94 | 33.73 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 23.48 ▲0.36 | 704.73 ▲29.63 | 57.75 ▲1.54 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▼0.05 | 94.58 ▲0.52 | 42.87 ▼3.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/weekly-archive-widget/weekly-archive-widget.php+52
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_weekly_archive_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/weekly-archive-widget/weekly-archive-widget.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (In a sidebar, with the dropdown expanded), #2 (The widget settings screen)
weekly-archive-widget/weekly-archive-widget.php Passed 13 tests
The main file in "Weekly Archive Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Create a widget that displays the archives by week
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin38 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 8 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 11.13KB | 7.17KB | ▼ 35.62% |
screenshot-2.png | 4.63KB | 2.68KB | ▼ 42.03% |