90% add-categories-and-tags-to-pages

Code Review | Add Categories And Tags To Pages

WordPress plugin Add Categories And Tags To Pages scored 90% from 54 tests.

About plugin

  • Plugin page: add-categories-an...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.1
  • WordPress version: 5.9.2
  • First release: Jun 8, 2020
  • Latest release: Jun 9, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: eastsidecode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 350 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Add Categories And Tags To Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0254.50 ▲4.96
Dashboard /wp-admin3.42 ▲0.0131.27 ▼7.42
Posts /wp-admin/edit.php3.65 ▲0.0135.26 ▼2.61
Add New Post /wp-admin/post-new.php6.91 ▼0.06100.69 ▼1,169.14
Media Library /wp-admin/upload.php3.30 ▲0.0023.76 ▼7.29
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page3.2928.76
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.3024.70

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
category_children

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Categories And Tags To Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,805 ▲6315.84 ▲0.166.11 ▲0.362.81 ▲0.46
Dashboard /wp-admin2,902 ▲416.12 ▼0.10125.56 ▼9.41156.45 ▼1.29
Posts /wp-admin/edit.php2,701 ▲163.36 ▲0.1262.46 ▼0.12136.05 ▼14.16
Add New Post /wp-admin/post-new.php1,667 ▼9115.78 ▼6.37418.65 ▼27.67155.01 ▲2.60
Media Library /wp-admin/upload.php1,708 ▲135.53 ▲0.01133.19 ▼8.72182.98 ▼10.60
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page1,8832.7754.97136.61
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,7152.7660.87127.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 were found after uninstall: 1 option
    • category_children

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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
3 plugin tags: page tags, post tags, page categories

add-categories-and-tags-to-pages/atagtp.php 92% from 13 tests

This is the main PHP file of "Add Categories And Tags To Pages" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("add-categories-and-tags-to-pages.php" instead of "atagtp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin24 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2231124

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin