77% wp-content-generator-blog-planner-free

Code Review | WP Content Generator Blog Planner FREE for WooCommerce

WordPress plugin WP Content Generator Blog Planner FREE for WooCommerce scored 77% from 54 tests.

About plugin

  • Plugin page: wp-content-genera...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 5.8.1
  • First release: Oct 12, 2018
  • Latest release: Mar 8, 2019
  • Number of updates: 54
  • Update frequency: every 2.7 days
  • Top authors: rgbsoluzioni (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10+ active / 800 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.25MB] [CPU: ▼141.18ms] Passed 4 tests

Analyzing server-side resources used by WP Content Generator Blog Planner FREE for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.3240.57 ▲16.57
Dashboard /wp-admin3.30 ▲0.2445.55 ▲2.76
Posts /wp-admin/edit.php3.41 ▲0.3042.57 ▼0.65
Add New Post /wp-admin/post-new.php5.66 ▲0.2288.90 ▼570.59
Media Library /wp-admin/upload.php3.24 ▲0.2435.30 ▲3.75
WooGetter /wp-admin/edit.php?post_type=wp_cg_woogetter3.2835.99
Structural Phrases /wp-admin/edit.php?post_type=wp_cg_wooget_phrases3.2832.74
WPCG Dashboard /wp-admin/admin.php?page=wp-cg-dashboard3.2229.58
Test /wp-admin/admin.php?page=wp-cg-test-file-phrases3.2128.22

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 3 new options
New WordPress options
wp_cg_options
wp_cg_phrases_settings
wp_cg_analysis

Browser metrics Passed 4 tests

A check of browser resources used by WP Content Generator Blog Planner FREE for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,753 ▲15715.85 ▲0.337.92 ▼1.4751.55 ▲0.56
Dashboard /wp-admin3,037 ▲1065.86 ▼0.25134.65 ▼5.06119.48 ▲4.39
Posts /wp-admin/edit.php2,830 ▲912.73 ▲0.0259.02 ▼9.5994.04 ▼0.05
Add New Post /wp-admin/post-new.php1,922 ▲25219.16 ▲0.06388.56 ▲10.22103.62 ▼9.81
Media Library /wp-admin/upload.php1,825 ▲185.00 ▼0.14126.80 ▼15.41144.75 ▲30.99
WooGetter /wp-admin/edit.php?post_type=wp_cg_woogetter1,5062.6356.5976.82
Structural Phrases /wp-admin/edit.php?post_type=wp_cg_wooget_phrases1,5062.6359.4777.15
WPCG Dashboard /wp-admin/admin.php?page=wp-cg-dashboard1,2512.2253.9783.90
Test /wp-admin/admin.php?page=wp-cg-test-file-phrases1,1182.0550.1054.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 3 options
    • wp_cg_phrases_settings
    • wp_cg_analysis
    • wp_cg_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wp-cg-test-file-phrases
    • > Notice in wp-content/plugins/wp-content-generator-blog-planner-free/includes/wp-cg-file-phrases-test-settings.php+60
    Undefined index: test_confirmed
    • > GET request to /wp-admin/admin.php?page=wp-cg-test-file-phrases
    • > Notice in wp-content/plugins/wp-content-generator-blog-planner-free/includes/wp-cg-file-phrases-test-settings.php+49
    Undefined variable: actual_link

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-content-generator-blog-planner-free/wp-cg-blog-planner-free.php:15

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 87% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

wp-content-generator-blog-planner-free/wp-cg-blog-planner-free.php 85% from 13 tests

The entry point to "WP Content Generator Blog Planner FREE for WooCommerce" version 1.0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-content-generator-blog-planner-free.php" instead of "wp-cg-blog-planner-free.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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 plugin2,052 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP144243581,713
PO File1102139320
CSS13219

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/wp-cg-page-refresh-icon.png0.47KB0.59KB0.00%
wp-content-generator-blog-planner-icon.png0.91KB1.13KB0.00%
icons/wp-cg-crawler-favicon.png0.38KB0.44KB0.00%