67% autonachrichten-newsfeed

Code Review | Autonachrichten Newsfeed

WordPress plugin Autonachrichten Newsfeed scored67%from 54 tests.

About plugin

  • Plugin page: autonachrichten-n...
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.8.2
  • WordPress version: 6.3.1
  • First release: Mar 5, 2012
  • Latest release: Sep 28, 2017
  • Number of updates: 18
  • Update frequency: every 112.9 days
  • Top authors: mtosch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,619 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by Autonachrichten Newsfeed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.23 ▼1.286.15 ▼39.18
Dashboard /wp-admin2.25 ▼1.146.56 ▼65.04
Posts /wp-admin/edit.php2.25 ▼1.156.71 ▼45.82
Add New Post /wp-admin/post-new.php2.25 ▼3.687.52 ▼85.85
Media Library /wp-admin/upload.php2.25 ▼1.026.93 ▼31.07
Autonachrichten Widget /wp-admin/options-general.php?page=autonachrichten-newsfeed/autonachrichten_newsfeed.php2.256.71

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please fix the following
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/autonachrichten-newsfeed/" and "wp-content/uploads/"
    • (new file) wp-content/plugins/rss_cache.txt
Filesystem: 7 new files
Database: no new tables, 11 new options
New WordPress options
an_show_image
theysaidso_admin_options
an_display_count
an_record_height
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
an_display_width
...

Browser metrics Passed 4 tests

Checking browser requirements for Autonachrichten Newsfeed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.08 ▼0.451.66 ▼0.2843.20 ▼3.38
Dashboard /wp-admin2,199 ▲255.61 ▲0.0796.43 ▲4.6841.66 ▼0.53
Posts /wp-admin/edit.php2,107 ▲71.94 ▼0.0135.82 ▼1.1334.33 ▼1.00
Add New Post /wp-admin/post-new.php1,531 ▲523.02 ▼0.49659.81 ▲7.8650.64 ▲2.64
Media Library /wp-admin/upload.php1,404 ▲44.23 ▼0.0798.79 ▲1.2943.32 ▲2.25
Autonachrichten Widget /wp-admin/options-general.php?page=autonachrichten-newsfeed/autonachrichten_newsfeed.php1,1372.0321.8528.32

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • an_show_image
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=autonachrichten-newsfeed/autonachrichten_newsfeed.php
    • > User deprecated in wp-includes/functions.php+5453
    Function register_widget_control is deprecated since version 2.8.0! Use wp_register_widget_control() instead.
    • > GET request to /wp-admin/options-general.php?page=autonachrichten-newsfeed/autonachrichten_newsfeed.php
    • > Warning in wp-content/plugins/autonachrichten-newsfeed/autonachrichten_newsfeed.php+134
    file_get_contents(https://www.autonachrichten.de/newsInterface): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

    • > GET request to /wp-admin/options-general.php?page=autonachrichten-newsfeed/autonachrichten_newsfeed.php
    • > Notice in wp-content/plugins/autonachrichten-newsfeed/autonachrichten_newsfeed.php+308
    Undefined index: anImportID
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=autonachrichten-newsfeed/autonachrichten_newsfeed.php
    • > User deprecated in wp-includes/functions.php+5453
    Function wp_specialchars is deprecated since version 2.8.0! Use esc_html() instead.
    • > GET request to /wp-admin/options-general.php?page=autonachrichten-newsfeed/autonachrichten_newsfeed.php
    • > Notice in wp-content/plugins/autonachrichten-newsfeed/autonachrichten_newsfeed.php+519
    Undefined index: an_submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_specialchars() in wp-content/plugins/autonachrichten-newsfeed/help.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/autonachrichten-newsfeed/autonachrichten_newsfeed.php:664

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Mögliche Einstellungen für dieses Plugin /assets/screenshot-1.jpg) image missing
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

autonachrichten-newsfeed/autonachrichten_newsfeed.php 92% from 13 tests

The principal PHP file in "Autonachrichten Newsfeed" v. 0.2.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("autonachrichten-newsfeed.php" instead of "autonachrichten_newsfeed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin523 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP214467486
JavaScript191637

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 files were detected