10% gp-auto-extract

Code Review | GP Auto Extract

WordPress plugin GP Auto Extract scored 10% from 54 tests.

About plugin

  • Plugin page: gp-auto-extract
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Jan 28, 2016
  • Latest release: Apr 17, 2023
  • Number of updates: 22
  • Update frequency: every 119.9 days
  • Top authors: GregRoss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,491 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Error in wp-content/plugins/gp-auto-extract/gp-auto-extract.php+25
    Uncaught Error: Class 'GP_Route_Main' not found in wp-content/plugins/gp-auto-extract/gp-auto-extract.php:25
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.83ms] Passed 4 tests

Analyzing server-side resources used by GP Auto Extract
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.37 ▼6.49
Dashboard /wp-admin3.31 ▲0.0048.97 ▼2.36
Posts /wp-admin/edit.php3.36 ▲0.0043.53 ▼0.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.26 ▼10.04
Media Library /wp-admin/upload.php3.23 ▲0.0035.39 ▲1.07

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GP Auto Extract
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.364.12 ▲2.3837.88 ▼5.98
Dashboard /wp-admin2,206 ▲244.88 ▼0.99111.63 ▼6.3643.66 ▼0.46
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0133.25 ▼5.6031.91 ▼3.92
Add New Post /wp-admin/post-new.php1,534 ▲1422.97 ▼0.43708.15 ▲49.0658.37 ▲8.19
Media Library /wp-admin/upload.php1,385 ▼64.24 ▼0.02139.56 ▲36.8256.35 ▲12.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 16× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
    • > PHP Warning
      Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
    • > PHP Notice
      Undefined variable: argv in wp-content/plugins/gp-auto-extract/include/extract/makepot.php on line 624
    • > PHP Warning
      fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
    • > PHP Warning
      Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
    • > PHP Notice
      Undefined variable: argv in wp-content/plugins/gp-auto-extract/include/extract/makepot.php on line 624
    • > PHP Fatal error
      Uncaught Error: Class 'GP_Route_Main' not found in wp-content/plugins/gp-auto-extract/gp-auto-extract.php:25
    • > PHP Warning
      Use of undefined constant STDERR - assumed 'STDERR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
    • > PHP Warning
      fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38
    • > PHP Warning
      fwrite() expects parameter 1 to be resource, string given in wp-content/plugins/gp-auto-extract/include/extract/not-gettexted.php on line 38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: glotpress, translation

gp-auto-extract/gp-auto-extract.php Passed 13 tests

The main PHP script in "GP Auto Extract" version 0.8 is automatically included on every request by WordPress
56 characters long description:
Automatically extract source strings from a remote repo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,486 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP103927012,368
JavaScript114070
CSS13048

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity28.38
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods152
▷ Static methods74.61%
▷ Public methods14796.71%
▷ Protected methods00.00%
▷ Private methods53.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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