83% anyfeed-retriever

Code Review | AnyFeed Retriever

WordPress plugin AnyFeed Retriever scored83%from 54 tests.

About plugin

  • Plugin page: anyfeed-retriever
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.1.0
  • WordPress version: 6.3.1
  • First release: Feb 11, 2019
  • Latest release: Mar 3, 2019
  • Number of updates: 5
  • Update frequency: every 4.4 days
  • Top authors: AnushkaKR (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,030 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼6.00ms] Passed 4 tests

This is a short check of server-side resources used by AnyFeed Retriever
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1843.58 ▼2.59
Dashboard /wp-admin3.48 ▲0.1752.43 ▼4.13
Posts /wp-admin/edit.php3.59 ▲0.2350.65 ▼1.71
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.54 ▼15.57
Media Library /wp-admin/upload.php3.40 ▲0.1738.46 ▲3.93
Feed Category /wp-admin/edit-tags.php?taxonomy=custfeedcategory&post_type=anyfeed3.4035.60
All Feeds /wp-admin/edit.php?post_type=anyfeed3.4441.41
Feed Groups /wp-admin/edit-tags.php?taxonomy=anyfeedgroups&post_type=anyfeed3.3935.82
Add New /wp-admin/post-new.php?post_type=anyfeed3.4850.91

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for AnyFeed Retriever
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18113.88 ▼0.719.34 ▲7.6842.85 ▼0.50
Dashboard /wp-admin2,230 ▲565.57 ▼0.0187.13 ▼10.5038.14 ▼0.38
Posts /wp-admin/edit.php2,138 ▲381.98 ▲0.0235.32 ▼0.9335.27 ▼2.91
Add New Post /wp-admin/post-new.php1,555 ▲2623.09 ▼0.22674.57 ▼10.0654.67 ▼2.87
Media Library /wp-admin/upload.php1,432 ▲294.22 ▼0.07100.96 ▼0.8742.04 ▲0.60
Feed Category /wp-admin/edit-tags.php?taxonomy=custfeedcategory&post_type=anyfeed1,3122.1326.0631.51
All Feeds /wp-admin/edit.php?post_type=anyfeed1,1241.9730.5230.36
Feed Groups /wp-admin/edit-tags.php?taxonomy=anyfeedgroups&post_type=anyfeed1,2782.1327.4529.97
Add New /wp-admin/post-new.php?post_type=anyfeed1,8603.9567.0134.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function anyfeedretriever\\plugin_dir_url() in wp-content/plugins/anyfeed-retriever/anyfeed.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/anyfeed-retriever/templates/custfeedcategory.php:7

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


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: news aggregator, rss import, rss feed, atom feed, rss parsing...

anyfeed-retriever/anyfeed.php 77% from 13 tests

The primary PHP file in "AnyFeed Retriever" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("anyfeed-retriever.php" instead of "anyfeed.php")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,871 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity107.25
▷ Minimum class complexity30.00
▷ Maximum class complexity223.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods21.85%
▷ Public methods9386.11%
▷ Protected methods1513.89%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants24100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.49MB with 0.26MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_screenshots/screenshot-2.png346.53KB125.87KB▼ 63.68%
_screenshots/screenshot-1.png148.89KB59.55KB▼ 60.00%
assets/images/no-image.png2.68KB1.62KB▼ 39.55%