84% ve-geo-redirect

Code Review | VE Geo Redirect

WordPress plugin VE Geo Redirect scored 84% from 54 tests.

About plugin

  • Plugin page: ve-geo-redirect
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 6.3.1
  • First release: Nov 17, 2016
  • Latest release: Apr 6, 2018
  • Number of updates: 8
  • Update frequency: every 62.5 days
  • Top authors: virtualemployee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,746 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.16MB] [CPU: ▼6.14ms] Passed 4 tests

Server-side resources used by VE Geo Redirect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.74 ▼0.7214.91 ▼26.13
Dashboard /wp-admin3.33 ▲0.0251.04 ▲6.13
Posts /wp-admin/edit.php3.38 ▲0.0252.27 ▲6.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.04 ▼6.23
Media Library /wp-admin/upload.php3.25 ▲0.0235.59 ▲1.68
Virtual GEO Redirect /wp-admin/options-general.php?page=ve-geo-redirect3.1930.73

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

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

Browser metrics Passed 4 tests

VE Geo Redirect: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.33 ▼0.991.76 ▼0.4243.13 ▼4.05
Dashboard /wp-admin2,210 ▲255.88 ▲0.01106.44 ▲5.5137.04 ▼8.84
Posts /wp-admin/edit.php2,090 ▲12.00 ▲0.0036.66 ▼0.7134.08 ▲1.01
Add New Post /wp-admin/post-new.php1,537 ▲417.78 ▼5.33668.55 ▼12.7858.23 ▲4.25
Media Library /wp-admin/upload.php1,386 ▼24.16 ▼0.0193.91 ▼13.1243.45 ▼5.85
Virtual GEO Redirect /wp-admin/options-general.php?page=ve-geo-redirect8412.0423.8829.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ve-geo-redirect
    • > Notice in wp-content/plugins/ve-geo-redirect/ve-geo-redirect.php+49
    Trying to access array offset on value of type bool

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

ve-geo-redirect/ve-geo-redirect.php 92% from 13 tests

The entry point to "VE Geo Redirect" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin179 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25053179

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin