10% automatic-pages-for-privacy-policy-terms-about-and-contact

Code Review | Automatic pages for Privacy Policy, Terms, About, Contact us

WordPress plugin Automatic pages for Privacy Policy, Terms, About, Contact us scored 10% from 54 tests.

About plugin

  • Plugin page: automatic-pages-f...
  • Plugin version: 1.41
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4+
  • WordPress version: 5.8.1
  • First release: Jul 11, 2019
  • Latest release: Aug 26, 2021
  • Number of updates: 43
  • Update frequency: every 18.1 days
  • Top authors: ttodua (65.12%)puvoxsoftware (37.21%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 6,767 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/library_default_puvox.php+8103
    Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/library_default_puvox.php:8103
    Stack trace:
    #0 wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/library_default_puvox.php(8034): Puvox\default_plugin->is_not_bulk_activation()
    #1 wp-includes/class-wp-hook.php(305): Puvox\default_plugin->Puvox\{closure}()
    #2 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(470): WP_Hook->do_action()
    #4 wp-admin/includes/plugin.php(725): do_action()

Server metrics [RAM: ▲2.26MB] [CPU: ▼128.18ms] Passed 4 tests

Analyzing server-side resources used by Automatic pages for Privacy Policy, Terms, About, Contact us
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.48 ▲2.7655.77 ▲35.85
Dashboard /wp-admin5.50 ▲2.4459.42 ▲10.76
Posts /wp-admin/edit.php5.50 ▲2.3953.82 ▲12.28
Add New Post /wp-admin/post-new.php7.17 ▲1.73108.04 ▼542.38
Media Library /wp-admin/upload.php5.50 ▲2.4945.18 ▲6.61
Automatic pages for Privacy Policy, Terms, About, Contact us /wp-admin/options-general.php?page=automatic-text-generator-for-important-pages5.5055.80

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: 1 new table, 1 new option
New tables
wp_automatic_text_generator_for_important_pages__errors_log
New WordPress options
automatic-text-generator-for-important-pages

Browser metrics Passed 4 tests

An overview of browser requirements for Automatic pages for Privacy Policy, Terms, About, Contact us
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲12915.94 ▲0.3412.06 ▲2.8252.14 ▲2.32
Dashboard /wp-admin2,978 ▲445.93 ▼0.28135.43 ▼17.04115.14 ▼1.89
Posts /wp-admin/edit.php2,747 ▲82.71 ▼0.0162.95 ▼3.4290.83 ▼7.30
Add New Post /wp-admin/post-new.php1,676 ▲419.14 ▲0.41366.44 ▼0.16102.80 ▼13.61
Media Library /wp-admin/upload.php1,818 ▲85.04 ▲0.01147.66 ▲6.20122.82 ▼2.71
Automatic pages for Privacy Policy, Terms, About, Contact us /wp-admin/options-general.php?page=automatic-text-generator-for-important-pages1,5593.1680.87138.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_automatic_text_generator_for_important_pages__errors_log
  • This plugin does not fully uninstall, leaving 1 option in the database
    • automatic-text-generator-for-important-pages

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/default-texts/terms.php
    • > /wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/default-texts/privacy-policy.php
    • > /wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/default-texts/contact.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

automatic-pages-for-privacy-policy-terms-about-and-contact/index.php 77% from 13 tests

The main file in "Automatic pages for Privacy Policy, Terms, About, Contact us" v. 1.41 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("automatic-pages-for-privacy-policy-terms-about-and-contact.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 279 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin5,365 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP51,4193,2635,365

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,007)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity237.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1,007.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces2
Interfaces0
Traits2
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods815
▷ Static methods9011.04%
▷ Public methods81099.39%
▷ Protected methods00.00%
▷ Private methods50.61%
Functions83
▷ Named functions00.00%
▷ Anonymous functions83100.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin