10% weekly-archive-widget

Code Review | Weekly Archive Widget

WordPress plugin Weekly Archive Widget scored 10% from 54 tests.

About plugin

  • Plugin page: weekly-archive-wi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 9, 2011
  • Latest release: Aug 31, 2015
  • Number of updates: 8
  • Update frequency: every 181.5 days
  • Top authors: ericjuden (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,277 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.72 ▼36.75
Dashboard /wp-admin2.05 ▼1.265.80 ▼45.96
Posts /wp-admin/edit.php2.05 ▼1.316.80 ▼43.00
Add New Post /wp-admin/post-new.php2.05 ▼3.845.25 ▼91.68
Media Library /wp-admin/upload.php2.05 ▼1.186.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.21 ▼1.141.93 ▲0.2240.25 ▼9.18
Dashboard /wp-admin2,203 ▲185.86 ▲0.0795.46 ▼8.5538.25 ▼3.90
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0238.84 ▲1.9433.73 ▼0.05
Add New Post /wp-admin/post-new.php1,537 ▲1723.48 ▲0.36704.73 ▲29.6357.75 ▲1.54
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0594.58 ▲0.5242.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

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)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP17838

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 code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png11.13KB7.17KB▼ 35.62%
screenshot-2.png4.63KB2.68KB▼ 42.03%