83% catholic-liturgical-calendar

Code Review | Catholic Liturgy Calendar

WordPress plugin Catholic Liturgy Calendar scored83%from 54 tests.

About plugin

  • Plugin page: catholic-liturgic...
  • Plugin version: 0.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Aug 29, 2013
  • Latest release: Sep 23, 2017
  • Number of updates: 36
  • Update frequency: every 41.3 days
  • Top authors: vercalendario-info (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,452 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.15ms] Passed 4 tests

This is a short check of server-side resources used by Catholic Liturgy Calendar
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.0347.34 ▲2.22
Dashboard /wp-admin3.59 ▲0.0250.51 ▼5.63
Posts /wp-admin/edit.php3.70 ▲0.0254.06 ▲3.99
Add New Post /wp-admin/post-new.php6.17 ▲0.0287.65 ▼7.60
Media Library /wp-admin/upload.php3.51 ▲0.0240.47 ▲2.40

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_cathlit-widget
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Catholic Liturgy Calendar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.24 ▼0.422.15 ▲0.2341.16 ▼4.52
Dashboard /wp-admin2,198 ▲215.67 ▼0.0184.23 ▼29.7138.32 ▼15.18
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0139.83 ▲3.8435.41 ▼0.41
Add New Post /wp-admin/post-new.php1,532 ▼023.05 ▼0.15682.37 ▼12.1657.06 ▲2.55
Media Library /wp-admin/upload.php1,400 ▲64.24 ▲0.0496.21 ▼3.1642.36 ▼1.59

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 detected upon uninstall: 7 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_cathlit-widget
    • widget_recent-comments
    • db_upgraded

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

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
Please fix the following
  • 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/catholic-liturgical-calendar/catholic-liturgy-calendar.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === catholic-liturgical-calendar === )
  • Screenshots: Add a description for screenshot #3 in catholic-liturgical-calendar/assets to your readme.txt
  • Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

catholic-liturgical-calendar/catholic-liturgy-calendar.php 85% from 13 tests

The main file in "Catholic Liturgy Calendar" v. 0.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("catholic-liturgical-calendar.php" instead of "catholic-liturgy-calendar.php")
  • Description: The description should be shorter than 140 characters (currently 175 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,038 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript815714791
CSS1247161
PHP1283786

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png48.80KB17.81KB▼ 63.50%