10% edents-archive-calendar-widget

Code Review | Edent's Archive Calendar Widget

WordPress plugin Edent's Archive Calendar Widget scored10%from 54 tests.

About plugin

  • Plugin page: edents-archive-ca...
  • Plugin version: trunk...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Oct 29, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: edent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /793 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/edents-archive-calendar-widget/edent-calendar-widget.php+28
    Declaration of edent_calendar_widget::widget($args = '') should be compatible with WP_Widget::widget($args, $instance)

Server metrics [RAM: ▼1.91MB] [CPU: ▼51.20ms] Passed 4 tests

Analyzing server-side resources used by Edent's Archive Calendar Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.66 ▼36.36
Dashboard /wp-admin2.10 ▼1.206.32 ▼44.66
Posts /wp-admin/edit.php2.10 ▼1.256.34 ▼41.50
Add New Post /wp-admin/post-new.php2.10 ▼3.798.24 ▼82.26
Media Library /wp-admin/upload.php2.10 ▼1.136.17 ▼26.29

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
widget_edent_calendar_widget

Browser metrics Passed 4 tests

Edent's Archive Calendar Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.72 ▲0.331.65 ▼0.0140.23 ▼3.16
Dashboard /wp-admin2,197 ▲235.67 ▲0.0693.04 ▼6.6838.65 ▼5.20
Posts /wp-admin/edit.php2,102 ▼11.97 ▲0.0339.20 ▼1.0735.20 ▼4.71
Add New Post /wp-admin/post-new.php1,528 ▲223.24 ▲0.18668.81 ▲24.9851.28 ▲6.03
Media Library /wp-admin/upload.php1,396 ▼74.22 ▲0.04100.54 ▼1.4343.54 ▼0.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Warning in wp-content/plugins/edents-archive-calendar-widget/edent-calendar-widget.php+28
    Declaration of edent_calendar_widget::widget($args = '') should be compatible with WP_Widget::widget($args, $instance)
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_edent_calendar_widget
    • theysaidso_admin_options
    • can_compress_scripts

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
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/edents-archive-calendar-widget/edent-calendar-widget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
The official readme.txt might help

edents-archive-calendar-widget/edent-calendar-widget.php 85% from 13 tests

"Edent's Archive Calendar Widget" version trunk...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("edents-archive-calendar-widget.php" instead of "edent-calendar-widget.php")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "trunk...")

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
Everything looks great! No dangerous files found in this plugin182 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14290160
CSS17022

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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