84% simple-blog-card

Code Review | Simple Blog Card

WordPress plugin Simple Blog Card scored84%from 54 tests.

About plugin

  • Plugin page: simple-blog-card
  • Plugin version: 1.33
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4
  • WordPress version: 6.3.1
  • First release: Nov 12, 2019
  • Latest release: Nov 1, 2023
  • Number of updates: 78
  • Update frequency: every 18.6 days
  • Top authors: Katsushi Kawamori (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /8,640 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.44ms] Passed 4 tests

This is a short check of server-side resources used by Simple Blog Card
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1443.07 ▲2.45
Dashboard /wp-admin3.44 ▲0.0950.06 ▼11.51
Posts /wp-admin/edit.php3.55 ▲0.2052.00 ▼0.12
Add New Post /wp-admin/post-new.php6.03 ▲0.1481.99 ▼10.87
Media Library /wp-admin/upload.php3.36 ▲0.1339.44 ▲0.75
Simple Blog Card /wp-admin/options-general.php?page=simpleblogcard3.3332.76

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Blog Card
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲4214.34 ▼0.171.56 ▼0.1440.29 ▼7.83
Dashboard /wp-admin2,207 ▲335.63 ▲0.0491.02 ▲2.2337.65 ▼2.99
Posts /wp-admin/edit.php2,109 ▲92.01 ▲0.0140.55 ▲3.0335.71 ▲1.54
Add New Post /wp-admin/post-new.php6,203 ▲4,67519.18 ▼3.97828.27 ▲127.6555.96 ▲2.56
Media Library /wp-admin/upload.php1,409 ▲94.19 ▲0.0294.57 ▼12.5041.38 ▼3.37
Simple Blog Card /wp-admin/options-general.php?page=simpleblogcard1,2972.4752.3129.75

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-blog-card/lib/class-simpleblogcard.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-blog-card/lib/class-simpleblogcardadmin.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-blog-card/lib/class-simpleblogcard.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: card, external link, linkcard, blogcard, internal link

simple-blog-card/simpleblogcard.php 92% from 13 tests

The primary PHP file in "Simple Blog Card" version 1.33 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-blog-card.php" instead of "simpleblogcard.php")

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 plugin983 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP5121192800
JavaScript41736163
JSON10020
CSS13170

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.39
Average class complexity52.50
▷ Minimum class complexity39.00
▷ Maximum class complexity66.00
Average method complexity6.72
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods950.00%
▷ Protected methods00.00%
▷ Private methods950.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin