78% wp-parentcomms-connect

Code Review | WP ParentComms Connect

WordPress plugin WP ParentComms Connect scored78%from 54 tests.

About plugin

  • Plugin page: wp-parentcomms-co...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.0
  • WordPress version: 6.3.1
  • First release: Dec 2, 2014
  • Latest release: Dec 2, 2014
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: wpatomwide (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /774 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.63MB] [CPU: ▼14.06ms] Passed 4 tests

A check of server-side resources used by WP ParentComms Connect
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.20 ▼0.32
Dashboard /wp-admin3.35 ▲0.0545.09 ▼3.88
Posts /wp-admin/edit.php3.47 ▲0.1144.40 ▼1.51
Add New Post /wp-admin/post-new.php3.21 ▼2.6836.32 ▼50.54
Media Library /wp-admin/upload.php3.28 ▲0.0540.46 ▲4.92
WP ParentComms /wp-admin/options-general.php?page=wp_plugin_template3.2429.06

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WP ParentComms Connect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.28 ▼0.071.63 ▼0.2043.36 ▲3.95
Dashboard /wp-admin2,193 ▲195.56 ▼0.0384.48 ▼5.4639.37 ▼0.64
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0333.51 ▼2.3434.21 ▼4.76
Add New Post /wp-admin/post-new.php1,536 ▲823.77 ▲0.77592.07 ▼79.2148.31 ▲3.02
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.0795.29 ▼18.6244.08 ▼1.97
WP ParentComms /wp-admin/options-general.php?page=wp_plugin_template6971.516.5721.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wp_plugin_template
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/wp-parentcomms-connect/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/wp-parentcomms-connect/templates/settings.php(5): do_settings_fields()
    #1 wp-content/plugins/wp-parentcomms-connect/settings.php(120): include('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): WP_Plugin_Template_Settings->plugin_settings_page()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-parentcomms-connect/templates/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-parentcomms-connect/wp_parentcomms_connect.php:79
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-parentcomms-connect/templates/post_metabox.php:5

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

wp-parentcomms-connect/wp_parentcomms_connect.php 92% from 13 tests

The main file in "WP ParentComms Connect" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-parentcomms-connect.php" instead of "wp_parentcomms_connect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected257 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP55588230
JavaScript19027

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.33
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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