84% advanced-schedule-posts

Code Review | Advanced Schedule Posts

WordPress plugin Advanced Schedule Posts scored84%from 54 tests.

About plugin

  • Plugin page: advanced-schedule...
  • Plugin version: 2.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 25, 2014
  • Latest release: Aug 24, 2021
  • Number of updates: 32
  • Update frequency: every 76.1 days
  • Top authors: hijiri (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

5,000+ active /45,461 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▲2.08ms] Passed 4 tests

Analyzing server-side resources used by Advanced Schedule Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2338.67 ▼0.26
Dashboard /wp-admin3.53 ▲0.2347.11 ▼1.12
Posts /wp-admin/edit.php3.65 ▲0.2953.76 ▲6.74
Add New Post /wp-admin/post-new.php6.12 ▲0.24110.99 ▲6.55
Media Library /wp-admin/upload.php3.46 ▲0.2336.77 ▲3.13
Settings /wp-admin/admin.php?page=hasp-settings3.4434.83
List /wp-admin/admin.php?page=hasp-list3.4836.26

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Schedule Posts
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8513.37 ▼1.191.71 ▼0.3241.63 ▼3.53
Dashboard /wp-admin2,248 ▲635.12 ▲0.26112.49 ▲3.8737.59 ▼3.23
Posts /wp-admin/edit.php2,147 ▲582.41 ▲0.3939.68 ▲3.3034.38 ▲2.46
Add New Post /wp-admin/post-new.php6,315 ▲4,77325.90 ▲7.59868.78 ▲258.0237.23 ▼15.47
Media Library /wp-admin/upload.php1,427 ▲364.43 ▲0.2595.67 ▼1.4943.79 ▲3.25
Settings /wp-admin/admin.php?page=hasp-settings9442.2433.9730.84
List /wp-admin/admin.php?page=hasp-list9752.2133.2824.93

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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 fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/advanced-schedule-posts/include/meta_box_block.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/advanced-schedule-posts/advanced-schedule-posts.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_type() in wp-content/plugins/advanced-schedule-posts/include/meta_box.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-schedule-posts/admin/list.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-schedule-posts/admin/settings.php:11

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)
Everything seems fine on the user side

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
3 plugin tags: post, schedule, admin

advanced-schedule-posts/advanced-schedule-posts.php Passed 13 tests

"Advanced Schedule Posts" version 2.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
95 characters long description:
Allows you to set datetime of expiration and to set schedule which overwrites the another post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,352 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22342952,003
PHP51872001,209
PO File1363788
CSS161334
Markdown113018

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity186.00
▷ Minimum class complexity186.00
▷ Maximum class complexity186.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods3997.50%
▷ Protected methods00.00%
▷ Private methods12.50%
Functions1
▷ Named functions1100.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 are no PNG files in this plugin