78% hide-my-dates

Code Review | Hide My Dates

WordPress plugin Hide My Dates scored78%from 54 tests.

About plugin

  • Plugin page: hide-my-dates
  • Plugin version: 2.00
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Oct 30, 2022
  • Number of updates: 40
  • Update frequency: every 74.2 days
  • Top authors: Flector (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /13,728 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Hide My Dates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.59 ▼6.10
Dashboard /wp-admin3.32 ▼0.0249.89 ▼12.48
Posts /wp-admin/edit.php3.37 ▲0.0253.58 ▼2.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.78 ▼11.16
Media Library /wp-admin/upload.php3.24 ▲0.0242.17 ▲6.86

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide My Dates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.25 ▼1.161.72 ▼0.0742.62 ▼1.83
Dashboard /wp-admin2,207 ▲155.77 ▲0.80106.27 ▼6.6540.20 ▼4.17
Posts /wp-admin/edit.php2,096 ▲252.04 ▲0.0142.11 ▲5.0936.46 ▲5.15
Add New Post /wp-admin/post-new.php1,516 ▲217.69 ▲0.22593.67 ▼99.9352.97 ▲1.34
Media Library /wp-admin/upload.php1,389 ▲44.22 ▲0.08100.41 ▼4.4844.54 ▼1.90
Hide My Dates /wp-admin/hide-my-dates.php260.440.1615.24

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-my-dates/hide-my-dates.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/hide-my-dates.php
    • > Network (severe)
    wp-admin/hide-my-dates.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: google, hide, hidden, time, dates...

hide-my-dates/hide-my-dates.php 92% from 13 tests

The entry point to "Hide My Dates" version 2.00 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected559 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15749309
CSS112195
JavaScript19055

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/icon_coffee.png5.14KB5.32KB0.00%
img/1.png6.89KB7.24KB0.00%