84% hide-this

Code Review | Hide This

WordPress plugin Hide This scored 84% from 54 tests.

About plugin

  • Plugin page: hide-this
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9
  • WordPress version: 6.3.1
  • First release: Oct 13, 2013
  • Latest release: Feb 13, 2018
  • Number of updates: 30
  • Update frequency: every 52.8 days
  • Top authors: andrezrv (100%)

Code review

54 tests

User reviews

49 reviews

Install metrics

4,000+ active / 46,508 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.04MB] [CPU: ▼4.39ms] Passed 4 tests

This is a short check of server-side resources used by Hide This
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.53 ▼3.59
Dashboard /wp-admin3.34 ▲0.0444.72 ▼5.76
Posts /wp-admin/edit.php3.46 ▲0.1047.55 ▲1.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.81 ▼8.34
Media Library /wp-admin/upload.php3.27 ▲0.0435.54 ▲0.12

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Hide This
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.45 ▲0.021.90 ▲0.0643.26 ▼4.75
Dashboard /wp-admin2,203 ▲115.86 ▲0.7493.79 ▼13.8837.38 ▼4.90
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0236.64 ▼0.0231.56 ▼0.54
Add New Post /wp-admin/post-new.php1,533 ▼122.99 ▼0.10596.90 ▼18.5980.64 ▲4.63
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0596.26 ▼7.0941.84 ▼7.51

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

Smoke tests 75% 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 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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hide-this/hide-this-loader.class.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
5 plugin tags: content, role, hide, capability, user

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

Analyzing the main PHP file in "Hide This" version 1.1.3
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 242 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin397 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP344166289
Markdown1570108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity25.50
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin