89% wp-post-hide

Code Review | WP Post Hide

WordPress plugin WP Post Hide scored89%from 54 tests.

About plugin

  • Plugin page: wp-post-hide
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 26, 2019
  • Latest release: Aug 11, 2023
  • Number of updates: 66
  • Update frequency: every 22.4 days
  • Top authors: xfinitysoft (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active /29,243 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.89ms] Passed 4 tests

An overview of server-side resources used by WP Post Hide
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1142.03 ▲5.54
Dashboard /wp-admin3.41 ▲0.0747.63 ▼13.32
Posts /wp-admin/edit.php3.53 ▲0.1744.14 ▲0.30
Add New Post /wp-admin/post-new.php6.02 ▲0.1394.55 ▼1.56
Media Library /wp-admin/upload.php3.34 ▲0.1037.74 ▲3.01
WP Post Hide /wp-admin/admin.php?page=xswpph_page3.3030.36
Support /wp-admin/admin.php?page=xswpph_support3.3042.72

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Post Hide
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.20 ▼0.151.79 ▲0.2142.13 ▲3.72
Dashboard /wp-admin2,223 ▲495.66 ▲0.1387.26 ▼3.8643.77 ▲4.56
Posts /wp-admin/edit.php2,125 ▲252.01 ▲0.0336.52 ▲0.7634.14 ▼0.83
Add New Post /wp-admin/post-new.php1,547 ▲2022.64 ▼0.46646.71 ▼7.0751.91 ▼18.04
Media Library /wp-admin/upload.php1,428 ▲314.24 ▲0.0597.48 ▲1.3742.34 ▼3.24
WP Post Hide /wp-admin/admin.php?page=xswpph_page8671.7024.8029.06
Support /wp-admin/admin.php?page=xswpph_support9171.6623.5231.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in wp-post-hide/assets to your readme.txt
The official readme.txt might help

wp-post-hide/wp-post-hide.php 92% from 13 tests

"WP Post Hide" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin865 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP751141571
JavaScript170127
PO File1347685
CSS15082

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.50
▷ Minimum class complexity2.00
▷ Maximum class complexity27.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods1071.43%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
3 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/post meta box.png26.15KB13.66KB▼ 47.78%
assets/images/page meta box.png51.33KB27.65KB▼ 46.13%
assets/images/Settings.png26.36KB15.06KB▼ 42.85%