84% bulk-page-generator

Code Review | Bulk Page Generator

WordPress plugin Bulk Page Generator scored84%from 54 tests.

About plugin

  • Plugin page: bulk-page-generator
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2022
  • Latest release: Jun 12, 2023
  • Number of updates: 8
  • Update frequency: every 31.4 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /1,618 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
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼4.08ms] Passed 4 tests

Analyzing server-side resources used by Bulk Page Generator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1941.81 ▼3.70
Dashboard /wp-admin3.55 ▲0.2481.17 ▲28.64
Posts /wp-admin/edit.php3.64 ▲0.2854.82 ▲0.26
Add New Post /wp-admin/post-new.php6.10 ▲0.2193.30 ▼13.79
Media Library /wp-admin/upload.php3.45 ▲0.2136.33 ▲0.93

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Page Generator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,036 ▲26516.19 ▲1.912.36 ▲0.2645.42 ▲2.27
Dashboard /wp-admin2,417 ▲2377.03 ▲1.41133.43 ▲39.5942.25 ▼2.69
Posts /wp-admin/edit.php2,491 ▲3914.82 ▲2.8463.00 ▲27.6633.25 ▼1.42
Add New Post /wp-admin/post-new.php1,546 ▲2023.36 ▲0.30610.79 ▼61.9636.07 ▼16.46
Media Library /wp-admin/upload.php1,639 ▲2365.01 ▲0.8897.93 ▼7.9943.18 ▼1.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include(): Failed opening 'BPG_PLUGIN_DIR_PATH/settings/diffrent-content-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bulk-page-generator/options.php on line 3
    • > PHP Warning
      include(BPG_PLUGIN_DIR_PATH/settings/same-content-setting.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-page-generator/options.php on line 2
    • > PHP Warning
      Use of undefined constant BPG_PLUGIN_DIR_PATH - assumed 'BPG_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-page-generator/options.php on line 4
    • > PHP Warning
      Use of undefined constant BPG_PLUGIN_DIR_PATH - assumed 'BPG_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-page-generator/options.php on line 2
    • > PHP Warning
      include(): Failed opening 'BPG_PLUGIN_DIR_PATH/settings/dynamic-title-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bulk-page-generator/options.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-page-generator/options.php:15
    • > PHP Warning
      include(BPG_PLUGIN_DIR_PATH/settings/dynamic-title-setting.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-page-generator/options.php on line 4
    • > PHP Warning
      include(): Failed opening 'BPG_PLUGIN_DIR_PATH/settings/same-content-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/bulk-page-generator/options.php on line 2
    • > PHP Warning
      include(BPG_PLUGIN_DIR_PATH/settings/diffrent-content-setting.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-page-generator/options.php on line 3
    • > PHP Warning
      Use of undefined constant BPG_PLUGIN_DIR_PATH - assumed 'BPG_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-page-generator/options.php on line 3

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: bulk post, bulk page, bulk creator, generator, page generator

bulk-page-generator/bulk-page-generator.php Passed 13 tests

The main PHP script in "Bulk Page Generator" version 1.2 is automatically included on every request by WordPress
128 characters long description:
Bulk Pages/Posts Generator is a plugin that provides an easy way through which a user can create multiple pages/posts at a time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,788 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP59191,005
CSS1733448
JavaScript13321329
SVG2006

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity14.00
▷ Minimum class complexity8.00
▷ Maximum class complexity16.00
Average method complexity6.78
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected