84% bulk-page-stub-creator

Code Review | Bulk Page Stub Creator

WordPress plugin Bulk Page Stub Creator scored84%from 54 tests.

About plugin

  • Plugin page: bulk-page-stub-cr...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 29, 2014
  • Latest release: Oct 2, 2023
  • Number of updates: 17
  • Update frequency: every 193.4 days
  • Top authors: rtpHarry (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /3,131 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: ▼8.46ms] Passed 4 tests

Analyzing server-side resources used by Bulk Page Stub Creator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.34 ▼1.24
Dashboard /wp-admin3.31 ▼0.0446.21 ▼16.84
Posts /wp-admin/edit.php3.36 ▲0.0042.84 ▼2.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.14 ▼13.01
Media Library /wp-admin/upload.php3.23 ▲0.0036.83 ▲2.72
Bulk Page Stub Creator /wp-admin/tools.php?page=bulk-page-stub-creator3.2026.61

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk Page Stub Creator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.39 ▲0.112.21 ▲0.4644.27 ▼1.26
Dashboard /wp-admin2,202 ▲225.64 ▲0.0189.41 ▼0.7240.40 ▲0.11
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0033.78 ▼4.7233.40 ▲0.36
Add New Post /wp-admin/post-new.php1,531 ▲322.99 ▼0.13668.33 ▲29.3850.23 ▼7.14
Media Library /wp-admin/upload.php1,404 ▲74.21 ▲0.05101.37 ▲4.3344.19 ▼0.12
Bulk Page Stub Creator /wp-admin/tools.php?page=bulk-page-stub-creator8161.9922.7229.13

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-page-stub-creator/includes/show-admin-page.php:138
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-page-stub-creator/includes/show-admin-page.php:138

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (The main bulk page stub creator admin page), #2 (The results of a bulk page stub creation), #3 (If WordPress finds that the requested slugs either were invalid or already in use it automatically renames the slug to a non-conflicting name.)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === bulk-page-stub-creator === )
You can look at the official readme.txt

bulk-page-stub-creator/bulk-page-stub-creator.php Passed 13 tests

The main file in "Bulk Page Stub Creator" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
Bulk create page stubs by simply providing a plain text list of titles and slugs.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin149 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34163149

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png28.76KB13.25KB▼ 53.91%
screenshot-1.png82.31KB28.12KB▼ 65.84%
screenshot-2.png22.32KB11.00KB▼ 50.73%