84% postless

Code Review | Postless

WordPress plugin Postless scored84%from 54 tests.

About plugin

  • Plugin page: postless
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 6.3.1
  • First release: Sep 19, 2015
  • Latest release: Nov 27, 2017
  • Number of updates: 16
  • Update frequency: every 73.7 days
  • Top authors: masikonis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,026 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.00MB] [CPU: ▼7.43ms] Passed 4 tests

Server-side resources used by Postless
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.31 ▼8.89
Dashboard /wp-admin3.30 ▲0.0046.27 ▼0.65
Posts /wp-admin/edit.php3.36 ▲0.0051.81 ▼6.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.76 ▼13.60
Media Library /wp-admin/upload.php3.23 ▲0.0037.47 ▲2.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Postless
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,651 ▼11014.26 ▼0.091.66 ▼0.2243.11 ▲3.44
Dashboard /wp-admin2,063 ▼1115.57 ▼0.0887.55 ▼1.6838.45 ▼2.88
Posts /wp-admin/edit.php2,064 ▼391.96 ▲0.0139.57 ▼0.0834.83 ▼2.57
Add New Post /wp-admin/post-new.php1,505 ▼3223.00 ▲5.03663.68 ▲24.0552.01 ▼17.60
Media Library /wp-admin/upload.php1,368 ▼354.23 ▲0.0496.92 ▼8.8745.21 ▼0.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/postless/postless.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postless/includes/functions.php:3

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: hide posts, posts link, postless, disable posts, disable blogging...

postless/postless.php Passed 13 tests

The principal PHP file in "Postless" v. 1.2 is loaded by WordPress automatically on each request
85 characters long description:
Disable blogging feature of WordPress, hide all links related to Posts functionality.

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
No dangerous file extensions were detected33 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4265033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin