94% hide-post-tags

Code Review | Hide Posts Tags

WordPress plugin Hide Posts Tags scored 94% from 54 tests.

About plugin

  • Plugin page: hide-post-tags
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Oct 31, 2021
  • Latest release: Oct 31, 2021
  • Number of updates: 2
  • Update frequency: every 6.0 days
  • Top authors: danymhanna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 22 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Hide Posts Tags
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1342.53 ▲15.77
Dashboard /wp-admin3.07 ▲0.0243.38 ▼1.64
Posts /wp-admin/edit.php3.12 ▲0.0143.48 ▼4.08
Add New Post /wp-admin/post-new.php5.43 ▼0.0188.87 ▼561.75
Media Library /wp-admin/upload.php3.01 ▲0.0132.22 ▼8.41
Hide Post Tags /wp-admin/options-general.php?page=hide_post_tags2.9826.73

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Hide Posts Tags
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,714 ▲11816.07 ▲0.4710.23 ▲0.2847.05 ▲0.39
Dashboard /wp-admin2,971 ▲375.96 ▼0.00144.12 ▼16.70110.14 ▼3.20
Posts /wp-admin/edit.php2,746 ▲72.71 ▲0.0064.99 ▲1.5385.48 ▼9.20
Add New Post /wp-admin/post-new.php1,877 ▲19419.07 ▲0.62387.90 ▼14.84120.54 ▲13.61
Media Library /wp-admin/upload.php1,817 ▲75.08 ▲0.04167.30 ▲13.40110.84 ▼5.15
Hide Post Tags /wp-admin/options-general.php?page=hide_post_tags1,0192.0952.1169.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/hide-post-tags/index.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: posts, hide, tags

hide-post-tags/index.php 92% from 13 tests

This is the main PHP file of "Hide Posts Tags" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hide-post-tags.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin65 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP115960
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions7
▷ Named functions7100.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
assets/icon-128x128.png6.84KB3.29KB▼ 51.85%
assets/img/correct.png4.81KB2.57KB▼ 46.61%