10% auto-sticky-post

Code Review | Auto Sticky Post

WordPress plugin Auto Sticky Post scored 10% from 54 tests.

About plugin

  • Plugin page: auto-sticky-post
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.8
  • WordPress version: 6.3.1
  • First release: Jan 23, 2014
  • Latest release: Jan 25, 2014
  • Number of updates: 13
  • Update frequency: every 3.2 days
  • Top authors: LIJE (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 3,072 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5737
    Function wp_get_recent_posts was called with an argument that is deprecated since version 3.1.0! Passing an integer number of posts is deprecated. Pass an array of arguments instead.

Server metrics [RAM: ▼0.69MB] [CPU: ▼14.82ms] Passed 4 tests

This is a short check of server-side resources used by Auto Sticky Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.57 ▼1.07
Dashboard /wp-admin3.32 ▲0.0245.69 ▼7.78
Posts /wp-admin/edit.php3.37 ▲0.0249.20 ▲3.88
Add New Post /wp-admin/post-new.php3.11 ▼2.7837.77 ▼49.46
Media Library /wp-admin/upload.php3.24 ▲0.0134.76 ▼0.98
Auto Sticky Post /wp-admin/options-general.php?page=auto-sticky-post3.2130.60

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
jlasp_number_post
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Auto Sticky Post
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.19 ▼1.041.75 ▼0.1741.45 ▼15.23
Dashboard /wp-admin2,213 ▲254.85 ▼0.02101.01 ▼4.5440.26 ▼4.21
Posts /wp-admin/edit.php2,104 ▲152.01 ▼0.0038.42 ▼3.4231.49 ▼4.32
Add New Post /wp-admin/post-new.php1,548 ▲1318.30 ▼4.82635.02 ▲25.4653.88 ▼13.77
Media Library /wp-admin/upload.php1,395 ▲74.13 ▼0.1098.02 ▼4.8545.30 ▲2.79
Auto Sticky Post /wp-admin/options-general.php?page=auto-sticky-post7942.0325.0627.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/auto-sticky-post/inc/functions.php
    • > /wp-content/plugins/auto-sticky-post/inc/admin/admin.php
    • > /wp-content/plugins/auto-sticky-post/inc/admin/options.php
    • > /wp-content/plugins/auto-sticky-post/auto-sticky-post.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: stick post, stick post homepage, auto stick post, sticky posts

auto-sticky-post/auto-sticky-post.php 92% from 13 tests

The main PHP file in "Auto Sticky Post" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin170 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP447102139
PO File16630
HTML1001

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.22
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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