83% bg-orthodox-calendar

Code Review | Bg Orthodox Calendar

WordPress plugin Bg Orthodox Calendar scored83%from 54 tests.

About plugin

  • Plugin page: bg-orthodox-calendar
  • Plugin version: 0.13.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2014
  • Latest release: Jan 15, 2019
  • Number of updates: 93
  • Update frequency: every 18.8 days
  • Top authors: VBog (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

200+ active /6,344 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.02MB] [CPU: ▼2.87ms] Passed 4 tests

Server-side resources used by Bg Orthodox Calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0734.89 ▼4.80
Dashboard /wp-admin3.33 ▲0.0246.49 ▼10.19
Posts /wp-admin/edit.php3.38 ▲0.0247.42 ▲2.05
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.33 ▲7.81
Media Library /wp-admin/upload.php3.25 ▲0.0236.57 ▲1.46
Православный календарь /wp-admin/options-general.php?page=bg-orthodox-calendar/bg_ortcal.php3.2234.14

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 36 new options
New WordPress options
bg_ortcal_linkImage
bg_ortcal_otherBgColor
bg_ortcal_popmenu101
bg_ortcal_Zindex
bg_ortcal_weddingColor
bg_ortcal_popmenu3
bg_ortcal_overBgColor
bg_ortcal_page
bg_ortcal_popmenu1002
bg_ortcal_popmenu1001
...

Browser metrics Passed 4 tests

A check of browser resources used by Bg Orthodox Calendar
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲12213.21 ▼1.352.66 ▲0.6440.95 ▼7.51
Dashboard /wp-admin2,209 ▲215.85 ▼0.0598.32 ▼15.0637.24 ▼8.30
Posts /wp-admin/edit.php2,098 ▲92.05 ▲0.0139.54 ▲4.1436.51 ▲0.42
Add New Post /wp-admin/post-new.php1,533 ▲1423.25 ▼0.09677.46 ▲5.6356.12 ▼2.17
Media Library /wp-admin/upload.php1,397 ▲94.18 ▲0.0196.02 ▼5.4542.62 ▼1.59
Православный календарь /wp-admin/options-general.php?page=bg-orthodox-calendar/bg_ortcal.php3,0721.7331.5748.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bg-orthodox-calendar/bg_ortcal.php
    • > /wp-content/plugins/bg-orthodox-calendar/css/colors.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: orthodoxy, christianity, calendar

bg-orthodox-calendar/bg_ortcal.php 77% from 13 tests

The entry point to "Bg Orthodox Calendar" version 0.13.10 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: The principal plugin file should be the same as the plugin slug ("bg-orthodox-calendar.php" instead of "bg_ortcal.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 385 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin34,359 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
XML20030,652
PHP41862401,924
JavaScript5107561,145
CSS41425638

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.57
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%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/separator2.png7.83KB3.85KB▼ 50.85%
css/wedding_off.png0.15KB0.09KB▼ 37.25%
css/separator.png27.60KB11.36KB▼ 58.84%
css/nowedding_off.png0.15KB0.09KB▼ 37.25%
css/wedding.png0.17KB0.10KB▼ 37.28%