84% page-tags-and-category

Code Review | Page Tags And Category

WordPress plugin Page Tags And Category scored84%from 54 tests.

About plugin

  • Plugin page: page-tags-and-cat...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8
  • WordPress version: 6.3.1
  • First release: May 30, 2017
  • Latest release: May 31, 2017
  • Number of updates: 14
  • Update frequency: every 0.1 days
  • Top authors: digitaladquest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /843 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.03MB] [CPU: ▼1.83ms] Passed 4 tests

Analyzing server-side resources used by Page Tags And Category
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.40 ▲1.48
Dashboard /wp-admin4.07 ▲0.7657.00 ▲3.77
Posts /wp-admin/edit.php3.39 ▲0.0350.40 ▼2.39
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.55 ▼7.04
Media Library /wp-admin/upload.php3.26 ▲0.0340.24 ▲0.62
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page3.2537.77
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page3.2545.02

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options
daq_category_enable
daq_tags_enable
category_children
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Page Tags And Category
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲10214.27 ▼0.111.88 ▼0.3539.74 ▼5.88
Dashboard /wp-admin2,282 ▲1085.55 ▼0.0292.10 ▼13.3976.61 ▲32.24
Posts /wp-admin/edit.php2,124 ▲241.97 ▲0.0041.26 ▲1.2439.20 ▲1.63
Add New Post /wp-admin/post-new.php1,547 ▲2123.30 ▲0.12670.13 ▲7.3653.94 ▼2.44
Media Library /wp-admin/upload.php1,424 ▲244.21 ▲0.01103.84 ▼1.6445.71 ▼1.25
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=page1,3432.2428.4731.57
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=page1,4762.1227.9636.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-comments
    • category_children
    • widget_recent-posts
    • can_compress_scripts
    • daq_tags_enable
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • daq_category_enable

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 | 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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-tags-and-category/page-tags-and-category.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #3 (The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).) image missing
You can look at the official readme.txt

page-tags-and-category/page-tags-and-category.php 92% from 13 tests

The main file in "Page Tags And Category" v. 1.01 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 199 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin180 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15042149
CSS10131

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions16
▷ Named functions16100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo.png5.21KB1.48KB▼ 71.70%
images/feed-logo.png5.06KB2.17KB▼ 57.04%