94% quick-bulk-post-page-creator

Code Review | Quick Bulk Post & Page Creator

WordPress plugin Quick Bulk Post & Page Creator scored 94% from 54 tests.

About plugin

  • Plugin page: quick-bulk-post-p...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 5.8.1
  • First release: Apr 16, 2015
  • Latest release: Apr 11, 2016
  • Number of updates: 15
  • Update frequency: every 24.1 days
  • Top authors: tyxla (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

4,000+ active / 28,989 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▼140.39ms] Passed 4 tests

Analyzing server-side resources used by Quick Bulk Post & Page Creator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0738.75 ▲0.77
Dashboard /wp-admin3.14 ▲0.0947.93 ▼1.26
Posts /wp-admin/edit.php3.25 ▲0.1451.13 ▼0.31
Add New Post /wp-admin/post-new.php5.50 ▲0.0791.94 ▼557.13
Media Library /wp-admin/upload.php3.09 ▲0.0833.70 ▼2.87
Quick Post Creator /wp-admin/tools.php?page=qbppc3.0534.17

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Quick Bulk Post & Page Creator: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲7115.78 ▲0.337.25 ▼2.7257.99 ▲8.02
Dashboard /wp-admin2,978 ▲445.88 ▼0.09133.79 ▼31.01120.68 ▼7.17
Posts /wp-admin/edit.php2,744 ▲52.68 ▼0.0073.83 ▲8.0195.38 ▼0.04
Add New Post /wp-admin/post-new.php1,501 ▼118.80 ▲0.16383.35 ▲11.09114.88 ▲2.49
Media Library /wp-admin/upload.php1,812 ▲55.01 ▼0.01153.27 ▼23.73130.53 ▲5.45
Quick Post Creator /wp-admin/tools.php?page=qbppc1,2282.2161.9778.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'QBPPC_Field' not found in wp-content/plugins/quick-bulk-post-page-creator/includes/field-select.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'QBPPC_Field' not found in wp-content/plugins/quick-bulk-post-page-creator/includes/field-text.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_form() on null in wp-content/plugins/quick-bulk-post-page-creator/templates/form.php:3
    • > PHP Notice
      Undefined variable: qbppc in wp-content/plugins/quick-bulk-post-page-creator/templates/form.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'QBPPC_Field' not found in wp-content/plugins/quick-bulk-post-page-creator/includes/field-textarea.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-bulk-post-page-creator/includes/form.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

quick-bulk-post-page-creator/quick-bulk-post-page-creator.php Passed 13 tests

The main PHP file in "Quick Bulk Post & Page Creator" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
A handy tool for batch creation of posts and pages in your preferred hierarchy.

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
Good job! No executable or dangerous file extensions detected426 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9118425380
Markdown122046

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.75
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods42
▷ Static methods49.52%
▷ Public methods3788.10%
▷ Protected methods511.90%
▷ 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
No PNG images were found in this plugin