83% automatic-post-scheduler

Code Review | Automatic Post Scheduler

WordPress plugin Automatic Post Scheduler scored83%from 54 tests.

About plugin

  • Plugin page: automatic-post-sc...
  • Plugin version: 0.9.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.5.2
  • WordPress version: 6.3.1
  • First release: Nov 19, 2010
  • Latest release: Jun 7, 2016
  • Number of updates: 57
  • Update frequency: every 35.6 days
  • Top authors: kasparsd (85.96%)tetele (15.79%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /9,066 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.83ms] Passed 4 tests

An overview of server-side resources used by Automatic Post Scheduler
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.87 ▲0.82
Dashboard /wp-admin3.35 ▲0.0051.22 ▼11.36
Posts /wp-admin/edit.php3.40 ▲0.0450.65 ▼0.25
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.16 ▼8.51
Media Library /wp-admin/upload.php3.27 ▲0.0438.33 ▲2.88

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Automatic Post Scheduler
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.231.79 ▼0.1545.24 ▲1.84
Dashboard /wp-admin2,195 ▲215.59 ▼0.0689.80 ▼12.2443.25 ▲0.63
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0135.76 ▼1.0236.25 ▲1.96
Add New Post /wp-admin/post-new.php1,526 ▼223.46 ▲0.17665.02 ▼33.2653.50 ▼8.38
Media Library /wp-admin/upload.php1,397 ▲64.22 ▼0.01115.97 ▲10.1347.93 ▲2.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatic-post-scheduler/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automatic-post-scheduler/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Scheduling settings), #2 (Post scheduling option when publishing)
You can take inspiration from this readme.txt

automatic-post-scheduler/plugin.php 85% from 13 tests

The main file in "Automatic Post Scheduler" v. 0.9.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("automatic-post-scheduler.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin245 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP210854201
PO File1142344

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
sceenshot-1.png74.03KB44.58KB▼ 39.78%
sceenshot-2.png72.69KB40.49KB▼ 44.30%