10% automatr

Code Review | Automatr

WordPress plugin Automatr scored 10% from 54 tests.

About plugin

  • Plugin page: automatr
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.6
  • WordPress version: 6.3.1
  • First release: Apr 3, 2013
  • Latest release: Aug 20, 2013
  • Number of updates: 9
  • Update frequency: every 15.4 days
  • Top authors: mikegrant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,246 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/automatr/automatr.php+472
    Declaration of automatrUpdatePluginSkin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)

Server metrics [RAM: ▼1.78MB] [CPU: ▼53.07ms] Passed 4 tests

Server-side resources used by Automatr
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.265.29 ▼35.58
Dashboard /wp-admin2.22 ▼1.086.31 ▼41.23
Posts /wp-admin/edit.php2.22 ▼1.136.31 ▼43.48
Add New Post /wp-admin/post-new.php2.22 ▼3.666.31 ▼91.98
Media Library /wp-admin/upload.php2.22 ▼1.006.75 ▼29.28
Automatr /wp-admin/options-general.php?page=Automatr2.236.32

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

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

Browser metrics Passed 4 tests

Automatr: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9414.48 ▲0.102.03 ▼0.0143.60 ▲5.61
Dashboard /wp-admin2,213 ▲255.88 ▲0.9897.64 ▼14.4838.17 ▼3.51
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0439.22 ▼2.3736.42 ▲0.79
Add New Post /wp-admin/post-new.php1,536 ▲1423.30 ▼0.05662.70 ▼25.4165.74 ▲11.38
Media Library /wp-admin/upload.php1,395 ▲74.28 ▲0.0895.24 ▼13.5641.65 ▼9.69
Automatr /wp-admin/options-general.php?page=Automatr9642.0723.9528.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/automatr/automatr.php+472
    Declaration of automatrUpdatePluginSkin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Warning in wp-content/plugins/automatr/automatr.php+472
    Declaration of automatrUpdatePluginSkin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Warning in wp-content/plugins/automatr/automatr.php+491
    Declaration of automatrUpdateThemeSkin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Warning in wp-content/plugins/automatr/automatr.php+510
    Declaration of automatrUpdateCoreSkin::feedback($feedback) should be compatible with WP_Upgrader_Skin::feedback($feedback, ...$args)
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > User deprecated in wp-includes/functions.php+5453
    Function get_themes is deprecated since version 3.4.0! Use wp_get_themes() instead.
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Notice in wp-content/plugins/automatr/automatr.php+131
    Undefined index: Twenty Nineteen
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Notice in wp-content/plugins/automatr/automatr.php+131
    Undefined index: Twenty Twenty
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Notice in wp-content/plugins/automatr/automatr.php+131
    Undefined index: Twenty Twenty-One
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Notice in wp-content/plugins/automatr/automatr.php+131
    Undefined index: Twenty Twenty-Three
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Notice in wp-content/plugins/automatr/automatr.php+131
    Undefined index: Twenty Twenty-Two
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Notice in wp-content/plugins/automatr/automatr.php+146
    Undefined index: automatr/automatr.php
    • > GET request to /wp-admin/options-general.php?page=Automatr
    • > Notice in wp-content/plugins/automatr/automatr.php+146
    Undefined index: hello.php

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/automatr/automatr.php on line 12
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/automatr/automatr.php on line 12
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/automatr/automatr.php on line 12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: updates, themes, automatic upgrader, multiple wordpress, automatic wordpress updater...

automatr/automatr.php Passed 13 tests

The main PHP script in "Automatr" version 0.3.1 is automatically included on every request by WordPress
116 characters long description:
Automatr updates your WordPress automatically, never again do you have to worry about applying updates to WordPress.

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 detected449 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16114449

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.36
Average class complexity18.75
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods2866.67%
▷ Protected methods00.00%
▷ Private methods1433.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected