84% scheduled-posts-publisher

Code Review | Scheduled Posts Publisher

WordPress plugin Scheduled Posts Publisher scored84%from 54 tests.

About plugin

  • Plugin page: scheduled-posts-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 30, 2020
  • Latest release: Jan 30, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: machoxz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /416 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.95ms] Passed 4 tests

Server-side resources used by Scheduled Posts Publisher
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.85 ▼3.89
Dashboard /wp-admin3.31 ▲0.0143.92 ▼3.20
Posts /wp-admin/edit.php3.36 ▲0.0143.82 ▼1.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.58 ▼31.58
Media Library /wp-admin/upload.php3.24 ▲0.0133.49 ▲0.16

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Scheduled Posts Publisher
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.141.59 ▼0.0843.24 ▲6.40
Dashboard /wp-admin2,203 ▲125.86 ▼0.01100.31 ▼4.6139.82 ▼1.93
Posts /wp-admin/edit.php2,089 ▲182.00 ▼0.0533.57 ▼3.0133.76 ▼1.02
Add New Post /wp-admin/post-new.php1,517 ▼217.77 ▼5.33672.35 ▲101.5751.73 ▲1.42
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.06101.24 ▲3.1344.49 ▲0.02

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scheduled-posts-publisher/scheduled-posts-publisher.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: missed schedules, missed posts, missed scheduled posts, scheduled posts

scheduled-posts-publisher/scheduled-posts-publisher.php Passed 13 tests

The principal PHP file in "Scheduled Posts Publisher" v. 1.0 is loaded by WordPress automatically on each request
73 characters long description:
This plugin publish scheduled posts that were missed by the server's cron

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17831

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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