84% wp-google-search-profile

Code Review | WP Plugin Google Search Profile

WordPress plugin WP Plugin Google Search Profile scored 84% from 54 tests.

About plugin

  • Plugin page: wp-google-search-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 3, 2020
  • Latest release: Jun 17, 2022
  • Number of updates: 3
  • Update frequency: every 248.0 days
  • Top authors: aistechnolabspvtltd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 357 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.15ms] Passed 4 tests

Server-side resources used by WP Plugin Google Search Profile
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.49 ▼7.91
Dashboard /wp-admin3.33 ▲0.0250.91 ▼1.54
Posts /wp-admin/edit.php3.38 ▲0.0249.52 ▼2.78
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.98 ▼7.49
Media Library /wp-admin/upload.php3.25 ▲0.0234.50 ▼2.42

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 14 new options
New WordPress options
widget_theysaidso_widget
_gsp_linkedin
_gsp_instagram
_gsp_youtube
_gsp_type
widget_recent-comments
widget_recent-posts
_gsp_twitter
_gsp_gplus
can_compress_scripts
...

Browser metrics Passed 4 tests

Checking browser requirements for WP Plugin Google Search Profile
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.32 ▼1.081.70 ▼0.7740.95 ▼6.58
Dashboard /wp-admin2,222 ▲344.87 ▼0.05110.51 ▼4.0540.79 ▼4.05
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0140.61 ▼0.3037.90 ▲3.34
Add New Post /wp-admin/post-new.php1,555 ▲3518.72 ▼4.46593.21 ▼71.7256.87 ▲4.56
Media Library /wp-admin/upload.php1,407 ▲194.13 ▼0.12100.63 ▼15.6742.33 ▼6.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-google-search-profile/google-search-profile.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-google-search-profile/function.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

wp-google-search-profile/google-search-profile.php 92% from 13 tests

This is the main PHP file of "WP Plugin Google Search Profile" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-google-search-profile.php" instead of "google-search-profile.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23911164

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin