84% gp-add-gp-profile-to-wp-profile

Code Review | GP Add GP Profile to WP Profile

WordPress plugin GP Add GP Profile to WP Profile scored84%from 54 tests.

About plugin

  • Plugin page: gp-add-gp-profile...
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2016
  • Latest release: Apr 17, 2023
  • Number of updates: 18
  • Update frequency: every 143.7 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,302 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.00MB] [CPU: ▼10.73ms] Passed 4 tests

This is a short check of server-side resources used by GP Add GP Profile to WP Profile
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.97 ▲3.27
Dashboard /wp-admin3.32 ▼0.0346.44 ▼11.11
Posts /wp-admin/edit.php3.37 ▲0.0144.85 ▼12.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.66 ▼19.62
Media Library /wp-admin/upload.php3.24 ▲0.0133.68 ▼0.06

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GP Add GP Profile to WP Profile
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.24 ▼0.481.65 ▲0.1046.42 ▲2.91
Dashboard /wp-admin2,198 ▲185.63 ▲0.0289.83 ▲3.6741.30 ▼0.13
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0334.25 ▼11.2131.25 ▼9.29
Add New Post /wp-admin/post-new.php1,534 ▲818.25 ▼5.23627.01 ▼34.6762.53 ▲12.53
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.0793.03 ▼16.5042.19 ▼8.24

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gp-add-gp-profile-to-wp-profile/gp-add-gp-profile-to-wp-profile.php:59

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: translation, glotpress

gp-add-gp-profile-to-wp-profile/gp-add-gp-profile-to-wp-profile.php Passed 13 tests

The primary PHP file in "GP Add GP Profile to WP Profile" version 0.6 is used by WordPress to initiate all plugin functionality
121 characters long description:
A plugin for GlotPress as a WordPress Plugin that adds the GlotPress user profile settings to the WordPress profile page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1131540

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin