84% hide-metadata

Code Review | Hide/Remove Metadata

WordPress plugin Hide/Remove Metadata scored84%from 54 tests.

About plugin

  • Plugin page: hide-metadata
  • Plugin version: 1.2.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.4
  • WordPress version: 6.3.1
  • First release: Jun 4, 2019
  • Latest release: Nov 15, 2023
  • Number of updates: 14
  • Update frequency: every 116.1 days
  • Top authors: catchthemes (92.86%)maheshmaharjan (14.29%)

Code review

54 tests

User reviews

12 reviews

Install metrics

30,000+ active /179,417 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼5.48ms] Passed 4 tests

An overview of server-side resources used by Hide/Remove Metadata
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.08 ▼3.72
Dashboard /wp-admin3.32 ▲0.0245.58 ▼1.38
Posts /wp-admin/edit.php3.37 ▲0.0151.15 ▲6.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.32 ▼12.14
Media Library /wp-admin/upload.php3.24 ▲0.0131.89 ▼4.67
Hide/Remove Metadata /wp-admin/tools.php?page=hide-metadata3.2730.18

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Hide/Remove Metadata
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.04 ▼0.191.83 ▼0.0744.54 ▲0.57
Dashboard /wp-admin2,202 ▲225.61 ▼0.0094.38 ▼2.2842.25 ▼2.96
Posts /wp-admin/edit.php2,107 ▲41.94 ▼0.0837.46 ▼5.1731.53 ▼5.96
Add New Post /wp-admin/post-new.php1,529 ▼223.02 ▲0.24699.37 ▲26.8466.26 ▲13.04
Media Library /wp-admin/upload.php1,407 ▲74.14 ▼0.0696.64 ▼16.8942.09 ▼3.36
Hide/Remove Metadata /wp-admin/tools.php?page=hide-metadata1,1862.1945.6352.59

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hide-metadata/partials/admin-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hide-metadata/partials/dashboard-display.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/hide-metadata/hide-metadata.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hide-metadata/partials/sidebar.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/hide-metadata/partials/footer.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Please fix the following attributes: Please take inspiration from this readme.txt

hide-metadata/hide-metadata.php 92% from 13 tests

The entry point to "Hide/Remove Metadata" version 1.2.7 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 174 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
Good job! No executable or dangerous file extensions detected1,149 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS214721724
PHP671106393
JavaScript213532

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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%