84% auto-post-scheduler

Code Review | Auto Post Scheduler

WordPress plugin Auto Post Scheduler scored84%from 54 tests.

About plugin

  • Plugin page: auto-post-scheduler
  • Plugin version: 1.83
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Aug 18, 2023
  • Number of updates: 67
  • Update frequency: every 50.4 days
  • Top authors: johnh10 (100%)

Code review

54 tests

User reviews

32 reviews

Install metrics

20,000+ active /115,368 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼2.97ms] Passed 4 tests

Analyzing server-side resources used by Auto Post Scheduler
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2036.59 ▼2.64
Dashboard /wp-admin3.50 ▲0.1948.93 ▲2.62
Posts /wp-admin/edit.php3.62 ▲0.2546.59 ▲2.05
Add New Post /wp-admin/post-new.php6.08 ▲0.1989.92 ▼11.16
Media Library /wp-admin/upload.php3.42 ▲0.1935.87 ▼0.11
Auto Post Scheduler /wp-admin/options-general.php?page=auto-post-scheduler3.4035.17

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: 1 new table, 38 new options
New tables
wp_aps_log
New WordPress options
aps_excludes
aps_hours_sun
theysaidso_admin_options
aps_start_delay
aps_recycle_min
aps_hours_sat
widget_recent-posts
aps_recycle
aps_random
aps_hours_fri
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Post Scheduler
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.20 ▼1.114.59 ▲2.6939.97 ▼21.94
Dashboard /wp-admin2,210 ▲225.90 ▲1.0196.97 ▼21.3042.65 ▼3.23
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.1935.87 ▼3.7234.81 ▼0.57
Add New Post /wp-admin/post-new.php1,538 ▲2423.24 ▲5.73685.35 ▲3.0456.80 ▲0.61
Media Library /wp-admin/upload.php1,395 ▲74.30 ▲0.1797.52 ▼16.8242.65 ▼8.12
Auto Post Scheduler /wp-admin/options-general.php?page=auto-post-scheduler1,2522.0723.4644.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • aps_recycle_new
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/auto-post-scheduler/auto-post-scheduler.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

auto-post-scheduler/auto-post-scheduler.php Passed 13 tests

The primary PHP file in "Auto Post Scheduler" version 1.83 is used by WordPress to initiate all plugin functionality
80 characters long description:
Publishes posts or recycles old posts at specified time intervals automatically.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,036 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP215145844
PO File17183183
CSS1519

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin