77% hide-archive-label

Code Review | Hide Archive Label

WordPress plugin Hide Archive Label scored77%from 54 tests.

About plugin

  • Plugin page: hide-archive-label
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Mar 3, 2020
  • Latest release: Nov 15, 2023
  • Number of updates: 13
  • Update frequency: every 104.5 days
  • Top authors: catchthemes (92.31%)maheshmaharjan (15.38%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /9,399 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.15ms] Passed 4 tests

Server-side resources used by Hide Archive Label
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0634.37 ▼5.42
Dashboard /wp-admin3.38 ▲0.0345.47 ▼15.45
Posts /wp-admin/edit.php3.49 ▲0.1347.95 ▲1.71
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.65 ▼2.53
Media Library /wp-admin/upload.php3.30 ▲0.0733.43 ▼1.18
Hide Archive Label /wp-admin/tools.php?page=hide-archive-label3.2931.76

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Hide Archive Label
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3414.67 ▲0.781.70 ▲0.0138.68 ▼4.47
Dashboard /wp-admin2,198 ▲235.60 ▼0.0993.73 ▼16.7044.36 ▼0.39
Posts /wp-admin/edit.php2,106 ▲31.97 ▲0.0340.77 ▲2.7138.04 ▲1.64
Add New Post /wp-admin/post-new.php1,534 ▲823.61 ▲0.47582.71 ▼70.1851.29 ▼0.12
Media Library /wp-admin/upload.php1,406 ▲64.22 ▼0.0196.51 ▼0.7044.46 ▲1.76
Hide Archive Label /wp-admin/tools.php?page=hide-archive-label1,3182.2047.2657.77

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/hide-archive-label/inc/partials/admin-display.php
    • > /wp-content/plugins/hide-archive-label/inc/partials/dashboard-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/hide-archive-label/inc/partials/footer.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hide-archive-label/inc/partials/sidebar.php:3

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: The official readme.txt might help

hide-archive-label/class-hide-archive-label.php 77% from 13 tests

Analyzing the main PHP file in "Hide Archive Label" version 1.5.2
The following require your attention:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("domain/path")
  • Main file name: The principal plugin file should be the same as the plugin slug ("hide-archive-label.php" instead of "class-hide-archive-label.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)

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
Everything looks great! No dangerous files found in this plugin1,203 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS214821727
PHP760105443
JavaScript213532
SVG1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity23.00
▷ Minimum class complexity8.00
▷ Maximum class complexity38.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods23
▷ Static methods939.13%
▷ Public methods23100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/free-plugin-246x116.png8.01KB3.81KB▼ 52.42%
images/premium-plugin-246x116.png9.01KB4.16KB▼ 53.83%