83% super-hide-post

Code Review | Super Hide Post

WordPress plugin Super Hide Post scored83%from 54 tests.

About plugin

  • Plugin page: super-hide-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.7.3
  • WordPress version: 6.3.1
  • First release: May 4, 2017
  • Latest release: May 4, 2017
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: angelomathews (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /3,103 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.08MB] [CPU: ▼3.75ms] Passed 4 tests

This is a short check of server-side resources used by Super Hide Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.21 ▲6.80
Dashboard /wp-admin3.39 ▲0.0845.00 ▼7.78
Posts /wp-admin/edit.php3.50 ▲0.1545.79 ▲1.10
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.55 ▼5.05
Media Library /wp-admin/upload.php3.31 ▲0.0833.48 ▼3.26

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Super Hide Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.16 ▼1.251.96 ▲0.2245.45 ▼0.81
Dashboard /wp-admin2,200 ▲155.84 ▲0.03106.68 ▲4.2039.66 ▼2.00
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0435.06 ▼0.8830.20 ▼3.61
Add New Post /wp-admin/post-new.php6,306 ▲4,78721.51 ▼1.45866.41 ▲186.1758.24 ▼8.00
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.01101.91 ▼9.7242.99 ▼7.54

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-hide-post/super-hide-post.php:105

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

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Contributors: The plugin contributors field is missing
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
The official readme.txt might help

super-hide-post/super-hide-post.php 85% from 13 tests

The entry point to "Super Hide Post" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 526 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin284 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP139122284

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions23
▷ Named functions23100.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
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png38.38KB18.58KB▼ 51.59%
screenshot-4.png33.68KB16.71KB▼ 50.40%
screenshot-3.png4.75KB2.56KB▼ 46.15%
screenshot-1.png5.38KB2.88KB▼ 46.49%