84% simple-shortcode-calendar

Code Review | Simple Shortcode Calendar

WordPress plugin Simple Shortcode Calendar scored 84% from 54 tests.

About plugin

  • Plugin page: simple-shortcode-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.7
  • WordPress version: 6.3.1
  • First release: Nov 1, 2013
  • Latest release: Nov 1, 2013
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: kamontander (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active / 3,404 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.09ms] Passed 4 tests

Server-side resources used by Simple Shortcode Calendar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.61 ▼4.48
Dashboard /wp-admin3.31 ▲0.0044.93 ▼4.89
Posts /wp-admin/edit.php3.36 ▲0.0046.17 ▲0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.96 ▼19.86
Media Library /wp-admin/upload.php3.23 ▲0.0037.72 ▲7.26

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple Shortcode Calendar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.68 ▼0.711.62 ▼0.3639.64 ▼9.18
Dashboard /wp-admin2,209 ▲245.80 ▲0.92107.07 ▲6.9337.84 ▼10.10
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0539.08 ▲3.1734.88 ▼0.47
Add New Post /wp-admin/post-new.php1,539 ▲623.27 ▼0.07648.83 ▲62.9960.32 ▲10.41
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.1794.12 ▼0.7443.48 ▲1.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 add_shortcode() in wp-content/plugins/simple-shortcode-calendar/simple-shortcode-calendar.php:14

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

simple-shortcode-calendar/simple-shortcode-calendar.php Passed 13 tests

"Simple Shortcode Calendar" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Outputs a calendar for any given month. Optionally highlights certain dates.

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 detected82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1212982

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin