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_wp.php+2677
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/library_wp.php:2677
Stack trace:
#0 wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
#1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲2.27MB] [CPU: ▲16.67ms] 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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.81 ▲2.35 | 58.91 ▲20.85 |
Dashboard /wp-admin | 5.61 ▲2.30 | 57.97 ▲7.83 |
Posts /wp-admin/edit.php | 5.66 ▲2.30 | 67.04 ▲20.41 |
Add New Post /wp-admin/post-new.php | 8.13 ▲2.24 | 111.32 ▲17.60 |
Media Library /wp-admin/upload.php | 5.47 ▲2.24 | 52.54 ▲22.43 |
Automatic info pages /wp-admin/options-general.php?page=automatic-text-generator-for-important-pages | 5.45 | 55.76 |
Server storage [IO: ▲0.43MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_automatic_text_generator_for_important_pages__errors_log |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
automatic-text-generator-for-important-pages |
widget_theysaidso_widget |
can_compress_scripts |
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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.24 ▼0.40 | 1.97 ▲0.21 | 44.35 ▲2.98 |
Dashboard /wp-admin | 2,202 ▲21 | 5.61 ▲0.01 | 98.61 ▼2.03 | 40.93 ▼1.15 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.16 | 40.13 ▲1.42 | 35.90 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.07 ▲0.09 | 597.14 ▼70.20 | 50.50 ▼22.13 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.02 | 96.91 ▲1.16 | 43.79 ▼1.50 |
Automatic info pages /wp-admin/options-general.php?page=automatic-text-generator-for-important-pages | 1,181 | 2.49 | 52.77 | 81.15 |
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 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- automatic-text-generator-for-important-pages
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 0% 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/contact.php
- > /wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/default-texts/privacy-policy.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/automatic-pages-for-privacy-policy-terms-about-and-contact/library_wp.php:25
- > PHP Fatal error
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
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.42 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:
- 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
- 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")
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 plugin4,053 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 1,336 | 5,134 | 4,053 |
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,076)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 354.20 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 1,076.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 865 | |
▷ Static methods | 102 | 11.79% |
▷ Public methods | 857 | 99.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 0.92% |
Functions | 89 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 89 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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