83% bulk-page-maker

Code Review | Bulk Page Maker

WordPress plugin Bulk Page Maker scored83%from 54 tests.

About plugin

  • Plugin page: bulk-page-maker
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.4
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Dec 1, 2015
  • Number of updates: 29
  • Update frequency: every 2.1 days
  • Top authors: robertwhitis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.38ms] Passed 4 tests

A check of server-side resources used by Bulk Page Maker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.02 ▼1.72
Dashboard /wp-admin3.34 ▲0.0446.75 ▼0.11
Posts /wp-admin/edit.php3.39 ▲0.0446.37 ▼3.49
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.24 ▼16.20
Media Library /wp-admin/upload.php3.26 ▲0.0438.83 ▲5.91
Bulk Add New /wp-admin/edit.php?post_type=page&page=bulk-add-new-pages3.3038.02
Bulk Add New /wp-admin/edit.php?page=bulk-add-new-posts3.2935.86

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Bulk Page Maker
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.31 ▼0.964.69 ▲3.0242.49 ▲3.29
Dashboard /wp-admin2,208 ▲205.75 ▼0.13100.14 ▼5.5438.82 ▼1.32
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0533.72 ▼7.6737.99 ▲1.81
Add New Post /wp-admin/post-new.php1,539 ▲623.11 ▼0.30667.08 ▼3.5750.23 ▲1.92
Media Library /wp-admin/upload.php1,399 ▲84.21 ▼0.08101.79 ▲3.1043.42 ▼0.56
Bulk Add New /wp-admin/edit.php?post_type=page&page=bulk-add-new-pages2,7776.76145.0661.98
Bulk Add New /wp-admin/edit.php?page=bulk-add-new-posts3,1386.83125.0347.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-page-maker/bulk-page-maker.php:27

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 90% 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
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Pages > Bulk Add New)
  • Screenshots: Please a description for screenshot #0 in bulk-page-maker/assets to your readme.txt
The official readme.txt is a good inspiration

bulk-page-maker/bulk-page-maker.php 92% from 13 tests

The main file in "Bulk Page Maker" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected177 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11469177

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.24MB with 0.17MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png248.65KB73.49KB▼ 70.44%