84% unlist-posts

Code Review | Unlist Posts & Pages

WordPress plugin Unlist Posts & Pages scored 84% from 54 tests.

About plugin

  • Plugin page: unlist-posts
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: May 23, 2017
  • Latest release: Aug 23, 2023
  • Number of updates: 31
  • Update frequency: every 73.7 days
  • Top authors: Nikschavan (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

10,000+ active / 101,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.29ms] Passed 4 tests

Server-side resources used by Unlist Posts & Pages
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0444.36 ▲0.41
Dashboard /wp-admin3.38 ▲0.0749.81 ▼3.27
Posts /wp-admin/edit.php3.49 ▲0.1354.01 ▼0.37
Add New Post /wp-admin/post-new.php5.96 ▲0.07100.25 ▲2.47
Media Library /wp-admin/upload.php3.30 ▲0.0636.07 ▼1.94

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Unlist Posts & Pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼1113.28 ▼1.161.85 ▼0.4949.96 ▲6.18
Dashboard /wp-admin2,203 ▼34.96 ▼0.91113.40 ▲3.7041.72 ▼2.94
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0040.13 ▼0.5335.91 ▲0.16
Add New Post /wp-admin/post-new.php6,470 ▲4,93720.11 ▼3.191,037.01 ▲404.6162.48 ▼2.00
Media Library /wp-admin/upload.php1,388 ▼34.19 ▲0.03100.25 ▼3.6545.99 ▲4.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 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/unlist-posts/class-unlist-posts.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: unlist posts, post, hide posts

unlist-posts/unlist-posts.php Passed 13 tests

The primary PHP file in "Unlist Posts & Pages" version 1.1.9 is used by WordPress to initiate all plugin functionality
101 characters long description:
Hide posts, pages or custom items from your site and make them accessible only with the direct link.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin244 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP392198244

PHP code Passed 2 tests

An short overview of 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.52
Average class complexity26.50
▷ Minimum class complexity23.00
▷ Maximum class complexity30.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected