84% s3k-seo-meta-for-category-posts

Code Review | Update SEO Meta for Posts and Categories

WordPress plugin Update SEO Meta for Posts and Categories scored84%from 54 tests.

About plugin

  • Plugin page: s3k-seo-meta-for-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2016
  • Latest release: Jul 23, 2016
  • Number of updates: 4
  • Update frequency: every 2.8 days
  • Top authors: er.sushilg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,314 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 gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.24ms] Passed 4 tests

A check of server-side resources used by Update SEO Meta for Posts and Categories
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.68 ▼1.25
Dashboard /wp-admin3.31 ▲0.0148.09 ▼1.88
Posts /wp-admin/edit.php3.36 ▲0.0151.63 ▼1.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.42 ▼3.27
Media Library /wp-admin/upload.php3.23 ▲0.0033.89 ▼2.09

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Update SEO Meta for Posts and Categories
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.32 ▼1.072.05 ▲0.0442.74 ▲2.42
Dashboard /wp-admin2,203 ▲155.83 ▼0.1996.25 ▼14.8440.07 ▼0.10
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0041.06 ▲0.7236.89 ▲1.67
Add New Post /wp-admin/post-new.php6,240 ▲4,70719.25 ▼4.07930.90 ▲239.8561.55 ▲8.57
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.1797.89 ▼18.0943.61 ▼3.23

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/s3k-seo-meta-for-category-posts/s3k-seo.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (screenshot is for Category SEO Meta.), #2 (screenshot is for Post SEO Meta.)
The official readme.txt might help

s3k-seo-meta-for-category-posts/s3k-seo.php 92% from 13 tests

The main PHP file in "Update SEO Meta for Posts and Categories" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("s3k-seo-meta-for-category-posts.php" instead of "s3k-seo.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 plugin115 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11520115

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.42MB with 0.29MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png187.07KB54.93KB▼ 70.64%
screenshot-2.png240.09KB70.71KB▼ 70.55%