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: 6.3.1
  • 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

70+ active / 572 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

A check of server-side resources used by Add Categories And Tags To Pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.87 ▼4.34
Dashboard /wp-admin3.31 ▲0.0145.23 ▼4.39
Posts /wp-admin/edit.php3.36 ▲0.0147.10 ▲4.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0383.09 ▼16.47
Media Library /wp-admin/upload.php3.24 ▲0.0133.46 ▲1.08
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page3.2338.19
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.2333.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
category_children
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Add Categories And Tags To Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.78 ▼0.591.68 ▼0.1740.62 ▼4.77
Dashboard /wp-admin2,211 ▲235.83 ▲0.92101.54 ▼0.9938.65 ▼4.66
Posts /wp-admin/edit.php2,097 ▲81.99 ▼0.0435.52 ▲1.4331.94 ▼2.69
Add New Post /wp-admin/post-new.php1,534 ▼023.28 ▲0.10653.88 ▼32.0863.55 ▲12.65
Media Library /wp-admin/upload.php1,396 ▲114.16 ▼0.0497.44 ▼14.0141.11 ▼7.51
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page1,4512.1427.6940.29
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3122.1326.3028.68

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • category_children
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: page categories, post tags, page tags

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

The main file in "Add Categories And Tags To Pages" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be 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 | 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 plugin24 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2231124

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin