90% storefront-blog-excerpt

Code Review | Storefront Blog Excerpts

WordPress plugin Storefront Blog Excerpts scored90%from 54 tests.

About plugin

  • Plugin page: storefront-blog-e...
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0+
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Feb 13, 2023
  • Number of updates: 19
  • Update frequency: every 152.8 days
  • Top authors: Wooassist (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /16,735 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Storefront Blog Excerpts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.82 ▼10.26
Dashboard /wp-admin3.31 ▲0.0045.35 ▼1.87
Posts /wp-admin/edit.php3.36 ▲0.0048.93 ▲3.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.76 ▲7.89
Media Library /wp-admin/upload.php3.23 ▲0.0035.38 ▲1.90

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
storefront-blog-excerpt-version

Browser metrics Passed 4 tests

An overview of browser requirements for Storefront Blog Excerpts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.391.92 ▼0.1938.23 ▼11.98
Dashboard /wp-admin2,206 ▲184.90 ▼0.96111.10 ▲4.9943.09 ▲4.34
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.18 ▲1.1334.24 ▲1.59
Add New Post /wp-admin/post-new.php1,514 ▼017.45 ▼0.32626.08 ▼53.9350.64 ▼0.24
Media Library /wp-admin/upload.php1,388 ▲34.19 ▼0.0297.46 ▼3.4741.29 ▼2.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • storefront-blog-excerpt-version
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

storefront-blog-excerpt/storefront-blog-excerpt.php Passed 13 tests

The primary PHP file in "Storefront Blog Excerpts" version 1.1.4 is used by WordPress to initiate all plugin functionality
56 characters long description:
A boilerplate plugin for creating Storefront extensions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin183 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP241139183

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods12
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin