74% multiple-page-generator

Code Review | Multiple Page Generator

WordPress plugin Multiple Page Generator scored74%from 54 tests.

About plugin

  • Plugin page: multiple-page-gen...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jun 12, 2019
  • Latest release: Feb 11, 2020
  • Number of updates: 38
  • Update frequency: every 6.4 days
  • Top authors: pluginbyvisualwebz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /2,092 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼35.79ms] Passed 4 tests

Analyzing server-side resources used by Multiple Page Generator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.90 ▼3.51
Dashboard /wp-admin3.04 ▼0.2623.58 ▼26.95
Posts /wp-admin/edit.php3.04 ▼0.3125.01 ▼24.45
Add New Post /wp-admin/post-new.php3.04 ▼2.8423.79 ▼81.01
Media Library /wp-admin/upload.php3.04 ▼0.1825.75 ▼10.74
Pages Creator /wp-admin/admin.php?page=mpg_single-generator3.0425.02
Excel Sheet Pages Creator /wp-admin/admin.php?page=xlsx-page-generator3.0425.89

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

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

Browser metrics Passed 4 tests

Multiple Page Generator: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7013.36 ▼1.021.59 ▼0.3540.07 ▼11.44
Dashboard /wp-admin2,233 ▲424.85 ▼1.0396.92 ▼10.6437.91 ▼7.06
Posts /wp-admin/edit.php2,116 ▲272.01 ▲0.0039.88 ▼0.9935.84 ▼3.89
Add New Post /wp-admin/post-new.php1,546 ▲918.18 ▼4.93594.55 ▼61.7656.86 ▼31.32
Media Library /wp-admin/upload.php1,418 ▲274.22 ▼0.0396.08 ▼4.6846.76 ▲3.21
Pages Creator /wp-admin/admin.php?page=mpg_single-generator7892.0628.5226.18
Excel Sheet Pages Creator /wp-admin/admin.php?page=xlsx-page-generator7932.6133.7124.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/multiple-page-generator/multiple-page-generator.php+36
    Undefined variable: hook
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=xlsx-page-generator
    • > Notice in wp-content/plugins/multiple-page-generator/multiple-page-generator.php+36
    Undefined variable: hook

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

multiple-page-generator/multiple-page-generator.php 92% from 13 tests

The entry point to "Multiple Page Generator" version 1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 556 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin577 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP59730238
JavaScript34615193
CSS1200118
XML60028

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity4.00
▷ Minimum method complexity4.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin