90% unlist-my-post

Code Review | Unlist My Post

WordPress plugin Unlist My Post scored90%from 54 tests.

About plugin

  • Plugin page: unlist-my-post
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 6.3.1
  • First release: Nov 10, 2017
  • Latest release: Apr 13, 2019
  • Number of updates: 25
  • Update frequency: every 20.8 days
  • Top authors: danieltj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,305 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.43ms] Passed 4 tests

A check of server-side resources used by Unlist My Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.58 ▲0.16
Dashboard /wp-admin3.32 ▲0.0245.68 ▼0.72
Posts /wp-admin/edit.php3.37 ▲0.0245.13 ▼7.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.91 ▼21.11
Media Library /wp-admin/upload.php3.24 ▲0.0233.28 ▼0.74

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Unlist My Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.071.75 ▼0.1444.26 ▼2.72
Dashboard /wp-admin2,206 ▲214.88 ▼0.0397.74 ▼7.3040.38 ▼3.34
Posts /wp-admin/edit.php2,102 ▲101.99 ▼0.0434.48 ▼7.5635.55 ▼1.36
Add New Post /wp-admin/post-new.php6,236 ▲4,69426.07 ▲7.87903.23 ▲301.3954.85 ▲8.85
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0395.84 ▼1.2442.74 ▼2.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 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: archive, unlist, filter, post, hide

unlist-my-post/unlist-my-post.php Passed 13 tests

Analyzing the main PHP file in "Unlist My Post" version 3.1
53 characters long description:
Unlist your posts so you'll need a link to read them.

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
There were no executable files found in this plugin307 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1120228166
Markdown2870141

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods1493.33%
▷ Public methods15100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin