83% bg-church-memos

Code Review | Bg Church Memos

WordPress plugin Bg Church Memos scored 83% from 54 tests.

About plugin

  • Plugin page: bg-church-memos
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.0
  • WordPress version: 6.3.1
  • First release: Apr 30, 2014
  • Latest release: Jan 2, 2017
  • Number of updates: 12
  • Update frequency: every 81.5 days
  • Top authors: VBog (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Bg Church Memos
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.68 ▼4.43
Dashboard /wp-admin3.31 ▲0.0145.71 ▼4.38
Posts /wp-admin/edit.php3.36 ▲0.0050.60 ▲3.70
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.16 ▼4.64
Media Library /wp-admin/upload.php3.23 ▲0.0034.09 ▼0.77

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Bg Church Memos
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.59 ▼0.662.04 ▲0.2441.76 ▼1.24
Dashboard /wp-admin2,206 ▲215.84 ▲0.9496.32 ▼7.8141.09 ▼1.81
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0740.78 ▼1.9135.52 ▲0.33
Add New Post /wp-admin/post-new.php1,533 ▼323.21 ▼0.02624.39 ▲20.7654.71 ▲3.68
Media Library /wp-admin/upload.php1,391 ▲94.17 ▼0.0496.28 ▼0.0643.36 ▲2.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bg-church-memos/bg_church-memos.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: orthodoxy, christianity

bg-church-memos/bg_church-memos.php 77% from 13 tests

The main file in "Bg Church Memos" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 258 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bg-church-memos.php" instead of "bg_church-memos.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Everything looks great! No dangerous files found in this plugin273 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
HTML2110143
JavaScript141169
CSS10033
PHP1133128

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
note.png71.95KB18.26KB▼ 74.62%