84% posts-date-reschedule

Code Review | Posts Date Reschedule

WordPress plugin Posts Date Reschedule scored 84% from 54 tests.

About plugin

  • Plugin page: posts-date-resche...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2017
  • Latest release: Oct 31, 2017
  • Number of updates: 15
  • Update frequency: every 0.8 days
  • Top authors: skostadinov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 735 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
Install script ran successfully

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

A check of server-side resources used by Posts Date Reschedule
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.42 ▼15.48
Dashboard /wp-admin3.33 ▲0.0346.60 ▼1.48
Posts /wp-admin/edit.php3.38 ▲0.0245.67 ▲1.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.06 ▼1.49
Media Library /wp-admin/upload.php3.25 ▲0.0234.24 ▼2.49

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Posts Date Reschedule
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.31 ▼1.314.00 ▲2.1540.60 ▼6.63
Dashboard /wp-admin2,222 ▲345.84 ▼0.0698.62 ▼17.0839.83 ▼8.14
Posts /wp-admin/edit.php2,102 ▲132.01 ▼0.0138.55 ▲1.6334.96 ▲0.15
Add New Post /wp-admin/post-new.php1,536 ▲823.29 ▲5.11623.53 ▲6.7050.46 ▲0.22
Media Library /wp-admin/upload.php1,398 ▲74.21 ▲0.0593.93 ▼5.8540.80 ▼4.82

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/posts-date-reschedule/inc/settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/posts-date-reschedule/posts-date-reschedule.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (Posts Date Reschedule)
The official readme.txt is a good inspiration

posts-date-reschedule/posts-date-reschedule.php 92% from 13 tests

The main PHP script in "Posts Date Reschedule" version 1.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin295 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP23015194
PO File1212358
JavaScript14118
Markdown14018
CSS1004
LESS1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity6.20
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.47MB with 0.34MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png479.22KB129.01KB▼ 73.08%