84% oik-batchmove

Code Review | oik batchmove

WordPress plugin oik batchmove scored84%from 54 tests.

About plugin

  • Plugin page: oik-batchmove
  • Plugin version: 2.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9+
  • WordPress version: 6.3.1
  • First release: Sep 21, 2013
  • Latest release: Oct 20, 2023
  • Number of updates: 46
  • Update frequency: every 81.7 days
  • Top authors: bobbingwide (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /6,024 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by oik batchmove
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.11 ▲2.32
Dashboard /wp-admin3.32 ▲0.0246.67 ▲1.71
Posts /wp-admin/edit.php3.37 ▲0.0144.57 ▲2.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.79 ▼20.54
Media Library /wp-admin/upload.php3.24 ▲0.0135.84 ▲1.12

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by oik batchmove
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲4614.17 ▼0.361.69 ▲0.0043.15 ▼1.53
Dashboard /wp-admin2,205 ▲255.62 ▼0.0393.42 ▲6.3142.45 ▲4.97
Posts /wp-admin/edit.php2,107 ▲72.00 ▼0.0035.98 ▼7.1233.47 ▼9.18
Add New Post /wp-admin/post-new.php1,533 ▲723.20 ▼0.31662.84 ▼8.9757.39 ▲2.54
Media Library /wp-admin/upload.php1,410 ▲134.17 ▲0.0092.50 ▼13.8943.30 ▼1.17

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oik-batchmove/oik-batchmove.php:122

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Selection criteria Choose the posts to alter), #2 (Selected posts), #3 (Target category and Action), #4 (Result reporting), #5 (Redisplaying a republished post), #6 (Scheduled republish options), #7 (Reposts for today - BEFORE scheduled publish has run. e.g. when scheduled processing not activated), #8 (Reposts for tomorrow - a look ahead to posts that will be republished tomorrow), #9 (Rescheduled posts and CRON - when no posts are scheduled for tomorrow), #10 (Rescheduled posts - posts which are scheduled for publishing tomorrow), #11 (CRON box - showing next scheduled time and information for the most recent run)
  • Tested up to: Invalid plugin version format
The official readme.txt is a good inspiration

oik-batchmove/oik-batchmove.php Passed 13 tests

This is the main PHP file of "oik batchmove" version 2.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
Batch change post categories or published date incl. CRON rescheduling

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
Success! There were no dangerous files found in this plugin1,235 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP62339201,235

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions110
▷ Named functions110100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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