63% auto-robot

Code Review | Auto Robot - WP Autoblogging and RSS Feed News Aggregator

WordPress plugin Auto Robot - WP Autoblogging and RSS Feed News Aggregator scored63%from 54 tests.

About plugin

  • Plugin page: auto-robot
  • Plugin version: 3.7.13
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: Dec 2, 2023
  • Number of updates: 721
  • Update frequency: every 1.8 days
  • Top authors: darell (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

100+ active /105,924 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲5.65MB] [CPU: ▲30.49ms] 75% from 4 tests

Analyzing server-side resources used by Auto Robot - WP Autoblogging and RSS Feed News Aggregator
Please take the time to fix the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.65MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.23 ▲5.7767.13 ▲24.13
Dashboard /wp-admin9.25 ▲5.9582.57 ▲28.90
Posts /wp-admin/edit.php9.25 ▲5.9089.83 ▲42.73
Add New Post /wp-admin/post-new.php10.86 ▲4.97122.57 ▲27.96
Media Library /wp-admin/upload.php9.25 ▲6.0271.05 ▲40.95
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.2568.65

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 324 new files
Database: 1 new table, 13 new options
New tables
wp_auto_robot_logs
New WordPress options
auto_robot_version_lite
fs_accounts
fs_active_plugins
db_upgraded
fs_debug_mode
can_compress_scripts
widget_theysaidso_widget
auto_robot_activated
theysaidso_admin_options
auto_robot_global_settings
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Robot - WP Autoblogging and RSS Feed News Aggregator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲7414.41 ▲0.251.62 ▼0.2325.74 ▼17.34
Dashboard /wp-admin2,257 ▲775.70 ▲0.0695.41 ▼5.2549.81 ▲6.38
Posts /wp-admin/edit.php2,178 ▲782.21 ▲0.2741.25 ▲4.5040.43 ▲4.98
Add New Post /wp-admin/post-new.php1,429 ▼10618.50 ▼6.63506.08 ▼119.9965.64 ▲3.92
Media Library /wp-admin/upload.php1,471 ▲744.33 ▲0.18100.76 ▲5.5346.58 ▲6.67
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,1052.0330.3630.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/auto-robot/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_auto_robot_logs
  • Zombie WordPress options were found after uninstall: 13 options
    • fs_active_plugins
    • widget_theysaidso_widget
    • auto_robot_global_settings
    • widget_recent-comments
    • auto_robot_version_lite
    • auto_robot_activated
    • auto_robot_review
    • theysaidso_admin_options
    • fs_accounts
    • widget_recent-posts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
  • 60× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Auto_Robot_Admin_Addons' not found in wp-content/plugins/auto-robot/admin/views/addons/content.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function auto_robot_get_addon_data() in wp-content/plugins/auto-robot/admin/views/integrations/popups/facebook.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/auto-robot/admin/views/import/sections/tab-export.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/auto-robot/admin/views/campaigns/wizard/components/campaign-name.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/auto-robot/admin/views/campaigns/wizard/content.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/auto-robot/admin/views/dashboard/widgets/widget-guide.php:5
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/auto-robot/admin/views/campaigns/list/header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-robot/admin/classes/class-admin-review.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/auto-robot/admin/views/help/widgets/widget-plugins.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/auto-robot/admin/views/campaigns/wizard/components/post-template.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Tags: There are too many tags (17 tag instead of maximum 10)
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in auto-robot/assets to your readme.txt
You can look at the official readme.txt

auto-robot/auto-robot-lite.php 92% from 13 tests

The main file in "Auto Robot - WP Autoblogging and RSS Feed News Aggregator" v. 3.7.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("auto-robot.php" instead of "auto-robot-lite.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected47,231 lines of code in 251 files:
LanguageFilesBlank linesComment linesLines of code
PHP21610,11420,09641,726
CSS18483513,811
JavaScript164734971,480
Markdown1680214

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity63.05
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes86
▷ Abstract classes78.14%
▷ Concrete classes7991.86%
▷ Final classes00.00%
Methods1,599
▷ Static methods20813.01%
▷ Public methods1,16873.05%
▷ Protected methods452.81%
▷ Private methods38624.14%
Functions140
▷ Named functions140100.00%
▷ Anonymous functions00.00%
Constants180
▷ Global constants12670.00%
▷ Class constants5430.00%
▷ Public constants54100.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
15 PNG files occupy 0.40MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/images/instagram-sketched.png147.11KB58.68KB▼ 60.11%
assets/images/facebook.png14.41KB6.87KB▼ 52.33%
assets/images/soundcloud.png20.15KB12.49KB▼ 37.99%
assets/images/vimeo.png27.81KB12.03KB▼ 56.74%