72% gg-auto-move

Code Review | GG Auto Move

WordPress plugin GG Auto Move scored72%from 54 tests.

About plugin

  • Plugin page: gg-auto-move
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 27, 2020
  • Latest release: Jun 27, 2020
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: gutengeek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.54ms] Passed 4 tests

Server-side resources used by GG Auto Move
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.71 ▼2.33
Dashboard /wp-admin3.39 ▲0.0444.05 ▼15.17
Posts /wp-admin/edit.php3.44 ▲0.0846.52 ▼2.75
Add New Post /wp-admin/post-new.php5.97 ▲0.0878.96 ▼17.89
Media Library /wp-admin/upload.php3.31 ▲0.0836.33 ▲2.16
Auto Move /wp-admin/admin.php?page=gg-auto-move-settings3.2530.04

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

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

Browser metrics Passed 4 tests

GG Auto Move: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.65 ▼0.781.55 ▼0.2237.73 ▼2.68
Dashboard /wp-admin2,203 ▲155.83 ▲1.00104.30 ▼1.3641.09 ▼2.36
Posts /wp-admin/edit.php2,089 ▼32.14 ▲0.1139.53 ▼0.4436.01 ▼0.30
Add New Post /wp-admin/post-new.php1,533 ▲1023.03 ▼0.28675.96 ▲32.9951.20 ▲0.93
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0196.13 ▲0.5041.53 ▲0.15
Auto Move /wp-admin/admin.php?page=gg-auto-move-settings9752.0224.7921.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gg-auto-move-settings
    • > Notice in wp-content/plugins/gg-auto-move/includes/admin/settings.php+63
    Trying to get property 'slug' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gg-auto-move-settings
    • > Notice in wp-includes/class-walker-category-dropdown.php+65
    Trying to get property 'name' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gg-auto-move-settings
    • > Notice in wp-includes/class-walker-category-dropdown.php+82
    Trying to get property 'count' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=gg-auto-move-settings
    • > Notice in wp-includes/class-walker-category-dropdown.php+76
    Trying to get property 'term_id' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gg-auto-move/includes/modules/dashboard-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gg-auto-move/includes/admin/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gg-auto-move/includes/modules/auto-move.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gg-auto-move/includes/modules/category-move.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=gg-auto-move-settings
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=gg-auto-move-settings 214:27 Uncaught TypeError: jQuery(...).select2 is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: auto move

gg-auto-move/gg-auto-move.php 85% from 13 tests

"GG Auto Move" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.2" instead of "3.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected540 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP69144540

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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 are no PNG files in this plugin