84% simple-calendar-blog-feed

Code Review | Simple Calendar: Blog Feed

WordPress plugin Simple Calendar: Blog Feed scored84%from 54 tests.

About plugin

  • Plugin page: simple-calendar-b...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2015
  • Latest release: Aug 26, 2023
  • Number of updates: 17
  • Update frequency: every 167.4 days
  • Top authors: pderksen (35.29%)rosinghal (29.41%)nekojira (29.41%)simplecalendar (23.53%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,753 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.79ms] Passed 4 tests

A check of server-side resources used by Simple Calendar: Blog Feed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.00 ▼4.03
Dashboard /wp-admin3.33 ▼0.0247.55 ▼16.32
Posts /wp-admin/edit.php3.38 ▲0.0246.99 ▲0.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.31 ▼16.22
Media Library /wp-admin/upload.php3.25 ▲0.0233.42 ▼2.59

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple Calendar: Blog Feed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.121.76 ▼0.2941.98 ▲0.48
Dashboard /wp-admin2,207 ▲194.83 ▼0.0597.47 ▼9.3142.40 ▲5.88
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0034.41 ▼5.6933.70 ▼0.63
Add New Post /wp-admin/post-new.php1,537 ▼523.21 ▲5.06682.02 ▲57.1954.93 ▲0.65
Media Library /wp-admin/upload.php1,386 ▲14.28 ▲0.1196.89 ▼6.5242.64 ▼3.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function SimpleCalendar\\register_activation_hook() in wp-content/plugins/simple-calendar-blog-feed/includes/add-on-blog-feed.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: simple calendar, posts, calendars, blog posts, posts calendar...

simple-calendar-blog-feed/simple-calendar-blog-feed.php 85% from 13 tests

The main PHP file in "Simple Calendar: Blog Feed" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Domain Path: Please prefix the domain path with a forward slash character ("/i18n/")
  • Domain Path: The domain path should use only dashes and lowercase characters ("i18n/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected332 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP345124332

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.00
▷ Minimum class complexity3.00
▷ Maximum class complexity27.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin