83% starter-blog-templates-for-faith-blog

Code Review | Starter Blog Templates For Faith Blog

WordPress plugin Starter Blog Templates For Faith Blog scored83%from 54 tests.

About plugin

  • Plugin page: starter-blog-temp...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.7.2
  • WordPress version: 6.3.1
  • First release: Jun 5, 2021
  • Latest release: Jun 5, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: mdimran41 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Starter Blog Templates For Faith Blog
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.56 ▼4.86
Dashboard /wp-admin3.32 ▲0.0244.52 ▼3.05
Posts /wp-admin/edit.php3.37 ▲0.0248.50 ▼0.51
Add New Post /wp-admin/post-new.php5.90 ▲0.02101.98 ▲5.86
Media Library /wp-admin/upload.php3.24 ▲0.0233.60 ▲1.46

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_aboutme_widget
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Starter Blog Templates For Faith Blog
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲9513.28 ▼1.104.67 ▲2.5539.43 ▼6.09
Dashboard /wp-admin2,211 ▲234.89 ▲0.00102.89 ▼14.8244.60 ▼2.82
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0240.00 ▲2.4534.31 ▲1.93
Add New Post /wp-admin/post-new.php1,539 ▲2023.20 ▲0.02597.16 ▼93.9252.53 ▼8.38
Media Library /wp-admin/upload.php1,397 ▲94.20 ▼0.0898.48 ▼13.6144.22 ▼7.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_aboutme_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/starter-blog-templates-for-faith-blog/inc/locked-theme-options/errorpage-option.php on line 2
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/starter-blog-templates-for-faith-blog/inc/locked-theme-options/footer-option.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/starter-blog-templates-for-faith-blog/inc/faith-customizer.php:3
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/starter-blog-templates-for-faith-blog/inc/locked-theme-options/blogpage-option.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Stffb_Customize_Control_Separetor() in wp-content/plugins/starter-blog-templates-for-faith-blog/inc/locked-theme-options/header-option.php:6
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/starter-blog-templates-for-faith-blog/inc/locked-theme-options/errorpage-option.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/starter-blog-templates-for-faith-blog/inc/locked-theme-options/woocommerce-options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/starter-blog-templates-for-faith-blog/inc/locked-theme-options/single-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/starter-blog-templates-for-faith-blog/stffb.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Stffb_Customize_Control_Separetor() in wp-content/plugins/starter-blog-templates-for-faith-blog/inc/locked-theme-options/typography-option.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 34 tag instead of maximum 10
The official readme.txt is a good inspiration

starter-blog-templates-for-faith-blog/stffb.php 69% from 13 tests

The main PHP file in "Starter Blog Templates For Faith Blog" 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:
  • Main file name: Name the main plugin file the same as the plugin slug ("starter-blog-templates-for-faith-blog.php" instead of "stffb.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")
  • Description: Please keep the plugin description shorter than 140 characters (currently 275 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,278 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
XML1701004,158
PHP1496531,120

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity4.75
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants3100.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.18MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/typography.png17.27KB9.25KB▼ 46.46%
assets/img/preloader.png5.23KB2.75KB▼ 47.30%
assets/img/featured.png30.75KB15.00KB▼ 51.24%
assets/img/blog-post-settings.png15.04KB7.31KB▼ 51.42%
assets/img/single-post.png11.54KB4.29KB▼ 62.80%