10% mass-page-creator

Code Review | Mass Page Creator

WordPress plugin Mass Page Creator scored 10% from 54 tests.

About plugin

  • Plugin page: mass-page-creator
  • Plugin version: .1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Jun 23, 2013
  • Latest release: Jan 2, 2016
  • Number of updates: 11
  • Update frequency: every 83.9 days
  • Top authors: kfoulks2011 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,561 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/mass-page-creator/index.php+78
    Undefined index: page

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.76ms] Passed 4 tests

Server-side resources used by Mass Page Creator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.413.80 ▼39.22
Dashboard /wp-admin2.07 ▼1.2310.01 ▼46.40
Posts /wp-admin/edit.php2.07 ▼1.287.90 ▼44.76
Add New Post /wp-admin/post-new.php2.07 ▼3.816.67 ▼80.65
Media Library /wp-admin/upload.php2.07 ▼1.155.74 ▼25.81
Mass Page Creator /wp-admin/options-general.php?page=mass_page_creator3.2332.08

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mass Page Creator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.47 ▲0.091.60 ▼0.6340.26 ▼9.70
Dashboard /wp-admin2,210 ▲225.84 ▼0.06107.98 ▼3.8244.46 ▼0.95
Posts /wp-admin/edit.php2,096 ▲42.05 ▲0.0641.33 ▲7.0634.87 ▼1.00
Add New Post /wp-admin/post-new.php1,545 ▲1218.43 ▼4.78594.74 ▼48.5165.27 ▲12.80
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0293.86 ▼12.9540.40 ▼4.21
Mass Page Creator /wp-admin/options-general.php?page=mass_page_creator9332.0024.1329.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/mass-page-creator/index.php+78
    Undefined index: page
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=mass_page_creator
    • > Notice in wp-content/plugins/mass-page-creator/contact/form.php+34
    Undefined index: contact_name
    • > GET request to /wp-admin/options-general.php?page=mass_page_creator
    • > Notice in wp-content/plugins/mass-page-creator/contact/form.php+35
    Undefined index: contact_email
    • > GET request to /wp-admin/options-general.php?page=mass_page_creator
    • > Notice in wp-content/plugins/mass-page-creator/contact/form.php+36
    Undefined index: contact_message

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mass-page-creator/contact/form.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined index: contact_message in wp-content/plugins/mass-page-creator/contact/form.php on line 36
    • > PHP Notice
      Undefined index: contact_name in wp-content/plugins/mass-page-creator/contact/form.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mass-page-creator/index.php:75
    • > PHP Notice
      Undefined index: contact_email in wp-content/plugins/mass-page-creator/contact/form.php on line 35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: mass, creator, pages

mass-page-creator/index.php 85% from 13 tests

The main PHP file in "Mass Page Creator" ver. .1... adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mass-page-creator.php" instead of "index.php")
  • Version: Use only periods and digits for the version number (ex. "1.0.3" instead of ".1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin179 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22610109
CSS17049
JavaScript329221

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin