10% create-pages-on-multisite

Code Review | Create Pages on Multisite WordPress

WordPress plugin Create Pages on Multisite WordPress scored10%from 54 tests.

About plugin

  • Plugin page: create-pages-on-m...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.8-3.8.8
  • WordPress version: 6.3.1
  • First release: Mar 22, 2016
  • Latest release: Mar 17, 2016
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: wpriders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,349 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/create-pages-on-multisite/wpriders-page-on-all.php+145
    Undefined variable: wpdb

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.23ms] Passed 4 tests

Analyzing server-side resources used by Create Pages on Multisite WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.61 ▼3.10
Dashboard /wp-admin3.33 ▲0.0351.37 ▼1.56
Posts /wp-admin/edit.php3.38 ▲0.0253.25 ▼0.88
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.49 ▲4.87
Media Library /wp-admin/upload.php3.25 ▲0.0238.92 ▲4.62
Create Pages on Multisite WordPress /wp-admin/tools.php?page=wprdiers-cpb-index3.2334.12

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Create Pages on Multisite WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.29 ▲0.012.00 ▲0.3945.17 ▲4.04
Dashboard /wp-admin2,199 ▲195.52 ▼0.1586.91 ▼10.1839.06 ▼1.33
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0539.55 ▼3.7837.34 ▼1.14
Add New Post /wp-admin/post-new.php1,544 ▲1725.03 ▲1.99612.61 ▼61.2270.67 ▲18.18
Media Library /wp-admin/upload.php1,404 ▲44.17 ▲0.01100.22 ▼8.6244.31 ▲0.58
Create Pages on Multisite WordPress /wp-admin/tools.php?page=wprdiers-cpb-index1,6206.55127.0357.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=wprdiers-cpb-index
    • > Notice in wp-content/plugins/create-pages-on-multisite/inc/content.php+68
    Undefined index: new_title
    • > GET request to /wp-admin/tools.php?page=wprdiers-cpb-index
    • > Notice in wp-content/plugins/create-pages-on-multisite/inc/content.php+70
    Undefined index: new_slug

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/create-pages-on-multisite/index.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/create-pages-on-multisite/inc/content.php:3

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)
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Plugin options screenshot1.png), #2 (Plugin more options screenshot2.png)
  • Screenshots: Add descriptions for screenshots #0, #0 in create-pages-on-multisite/assets to your readme.txt
You can look at the official readme.txt

create-pages-on-multisite/wpriders-page-on-all.php 85% from 13 tests

"Create Pages on Multisite WordPress" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("create-pages-on-multisite.php" instead of "wpriders-page-on-all.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 182 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
Everything looks great! No dangerous files found in this plugin288 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33717288

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin