84% add-schema-category

Code Review | Add Schema Category

WordPress plugin Add Schema Category scored84%from 54 tests.

About plugin

  • Plugin page: add-schema-category
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2022
  • Latest release: Mar 21, 2023
  • Number of updates: 20
  • Update frequency: every 12.9 days
  • Top authors: peymanseo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.02ms] Passed 4 tests

Server-side resources used by Add Schema Category
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.96 ▼8.98
Dashboard /wp-admin3.33 ▲0.0347.14 ▼3.49
Posts /wp-admin/edit.php3.38 ▲0.0345.04 ▼10.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.33 ▼9.36
Media Library /wp-admin/upload.php3.25 ▲0.0336.14 ▲2.25

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Add Schema Category
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.42 ▲0.131.57 ▼0.2941.13 ▼1.18
Dashboard /wp-admin2,209 ▲245.90 ▲1.0295.61 ▼16.5038.18 ▼6.24
Posts /wp-admin/edit.php2,092 ▼01.99 ▼0.0239.86 ▼1.7535.44 ▼2.48
Add New Post /wp-admin/post-new.php1,519 ▼923.36 ▲4.99662.12 ▲53.2251.93 ▼0.30
Media Library /wp-admin/upload.php1,385 ▲34.17 ▼0.0396.66 ▲1.8343.81 ▲1.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/add-schema-category/add-schema-category.php
    • > /wp-content/plugins/add-schema-category/inc/index.php
    • > /wp-content/plugins/add-schema-category/inc/ATH-output.php
    • > /wp-content/plugins/add-schema-category/inc/ATH-save-schema.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
1 plugin tags: add schema to category wordpress

add-schema-category/add-schema-category.php 85% from 13 tests

The main PHP file in "Add Schema Category" ver. 2.1.1 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:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Requires at least: Required version must match the one declared in readme.txt ("7.4" instead of "6.0.1")

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
There were no executable files found in this plugin106 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5242566
PO File17740

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
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 functions466.67%
▷ Anonymous functions233.33%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin