10% auto-post-download

Code Review | Auto Post Download

WordPress plugin Auto Post Download scored 10% from 54 tests.

About plugin

  • Plugin page: auto-post-download
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 5.8.1
  • First release: Mar 1, 2014
  • Latest release: Jun 19, 2017
  • Number of updates: 31
  • Update frequency: every 39.0 days
  • Top authors: MicNeo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,361 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/auto-post-download/APD_Settings.php+20
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.81MB] [CPU: ▼187.21ms] Passed 4 tests

This is a short check of server-side resources used by Auto Post Download
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.0536.88 ▲1.45
Dashboard /wp-admin1.84 ▼1.229.49 ▼34.72
Posts /wp-admin/edit.php1.84 ▼1.277.42 ▼37.38
Add New Post /wp-admin/post-new.php1.84 ▼3.595.74 ▼645.46
Media Library /wp-admin/upload.php1.84 ▼1.178.10 ▼31.26
Auto Post Download /wp-admin/options-general.php?page=apd_admin1.847.58

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Auto Post Download
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.82 ▲0.258.26 ▲0.2052.11 ▼1.70
Dashboard /wp-admin2,978 ▲475.91 ▼0.04139.39 ▼9.61111.92 ▼0.98
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0167.34 ▲1.3488.57 ▼8.51
Add New Post /wp-admin/post-new.php1,686 ▲318.78 ▲0.33371.72 ▼13.39114.06 ▼4.37
Media Library /wp-admin/upload.php1,847 ▲405.11 ▲0.09164.26 ▲11.50151.06 ▲23.50
Auto Post Download /wp-admin/options-general.php?page=apd_admin1,1552.2264.0990.16

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
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/auto-post-download/APD_Settings.php+20
    Trying to access array offset on value of type bool

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
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=apd_admin
    • > Notice in wp-content/plugins/auto-post-download/APD_Settings.php+189
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/auto-post-download/auto-post-download.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: presspack, pack, post, mediapack, fields...

auto-post-download/auto-post-download.php Passed 13 tests

"Auto Post Download" version 1.4.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
76 characters long description:
Plugin that automatically creates attachment with post content and its image

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
No dangerous file extensions were detected330 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP37335330

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity16.50
▷ Minimum class complexity15.00
▷ Maximum class complexity18.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1672.73%
▷ Protected methods00.00%
▷ Private methods627.27%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin