84% auto-post

Code Review | Auto Post for Task Scheduler

WordPress plugin Auto Post for Task Scheduler scored84%from 54 tests.

About plugin

  • Plugin page: auto-post
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 22, 2014
  • Latest release: Jul 6, 2016
  • Number of updates: 13
  • Update frequency: every 52.7 days
  • Top authors: miunosoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,104 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.69ms] Passed 4 tests

Server-side resources used by Auto Post for Task Scheduler
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.52 ▲0.77
Dashboard /wp-admin3.33 ▲0.0251.21 ▼10.12
Posts /wp-admin/edit.php3.38 ▲0.0252.21 ▼6.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.05 ▼6.51
Media Library /wp-admin/upload.php3.25 ▲0.0238.31 ▲0.22

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Post for Task Scheduler
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5414.48 ▲0.172.11 ▲0.3041.98 ▼0.20
Dashboard /wp-admin2,206 ▲215.91 ▲1.01107.90 ▼10.3338.87 ▼9.36
Posts /wp-admin/edit.php2,092 ▼02.00 ▼0.0440.27 ▲3.9534.92 ▼7.64
Add New Post /wp-admin/post-new.php1,542 ▲918.24 ▼4.97610.70 ▼66.7257.48 ▼5.27
Media Library /wp-admin/upload.php1,382 ▲34.17 ▼0.0497.67 ▼3.2244.06 ▼2.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
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
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'AutoPost_Registry' not found in wp-content/plugins/auto-post/include/class-list.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'TaskScheduler_Action_Base' not found in wp-content/plugins/auto-post/include/class/module/AutoPost_Action.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'TaskScheduler_Wizard_Action_Base' not found in wp-content/plugins/auto-post/include/class/module/admin/AutoPost_Action_Wizard.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'TaskScheduler_Wizard_Action_Base' not found in wp-content/plugins/auto-post/include/class/module/admin/AutoPost_Action_Wizard_2.php:12

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt might help

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

Analyzing the main PHP file in "Auto Post for Task Scheduler" version 1.2.1
63 characters long description:
Creates posts automatically serving as a Task Scheduler module.

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 plugin478 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6120198478

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes466.67%
Methods29
▷ Static methods26.90%
▷ Public methods1965.52%
▷ Protected methods00.00%
▷ Private methods1034.48%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants00.00%
▷ Class constants12100.00%
▷ Public constants12100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected