78% wp-autoblog

Code Review | WP Autoblog

WordPress plugin WP Autoblog scored78%from 54 tests.

About plugin

  • Plugin page: wp-autoblog
  • Plugin version: 0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.5
  • WordPress version: 6.3.1
  • First release: Oct 29, 2020
  • Latest release: Jan 23, 2021
  • Number of updates: 3
  • Update frequency: every 28.7 days
  • Top authors: saschahuber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /1,874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.43ms] Passed 4 tests

An overview of server-side resources used by WP Autoblog
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.26 ▼2.50
Dashboard /wp-admin3.31 ▼0.0450.30 ▼23.81
Posts /wp-admin/edit.php3.36 ▲0.0048.12 ▼0.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.85 ▼14.49
Media Library /wp-admin/upload.php3.23 ▲0.0037.05 ▲1.06

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Autoblog
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5713.23 ▼1.214.83 ▲2.4744.70 ▲0.62
Dashboard /wp-admin2,219 ▲134.86 ▲0.00121.91 ▲13.8555.89 ▲14.15
Posts /wp-admin/edit.php2,101 ▼22.00 ▲0.0137.77 ▼1.2633.61 ▼4.45
Add New Post /wp-admin/post-new.php1,546 ▲1522.71 ▼0.50663.80 ▲34.7059.96 ▼0.68
Media Library /wp-admin/upload.php1,404 ▲14.16 ▼0.24103.88 ▼2.4342.78 ▼2.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-autoblog/index.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WPAB_MetaBoxRegisterHook' not found in wp-content/plugins/wp-autoblog/class/SourcePostTypeRegisterHook.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-autoblog/class/job/FeedImporterJob.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-autoblog/class/MetaBoxPostListRegisterHook.php:46
    • > PHP Parse error
      syntax error, unexpected 'if' (T_IF), expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/wp-autoblog/class/Settings.php on line 76

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: aggregator, autoblog, rss aggregator, news aggregator

wp-autoblog/index.php 92% from 13 tests

The main PHP file in "WP Autoblog" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-autoblog.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin634 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP910950568
PO File127066

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity7.75
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods3997.50%
▷ Protected methods00.00%
▷ Private methods12.50%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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