74% defeed

Code Review | de:feed (Beta)

WordPress plugin de:feed (Beta) scored74%from 54 tests.

About plugin

  • Plugin page: defeed
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 17, 2015
  • Latest release: Sep 16, 2015
  • Number of updates: 3
  • Update frequency: every 10.7 days
  • Top authors: decollete (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,198 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.92MB] [CPU: ▼35.25ms] Passed 4 tests

A check of server-side resources used by de:feed (Beta)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.94 ▼7.28
Dashboard /wp-admin3.02 ▼0.2826.80 ▼23.37
Posts /wp-admin/edit.php3.02 ▼0.3323.46 ▼24.68
Add New Post /wp-admin/post-new.php3.02 ▼2.8623.47 ▼78.07
Media Library /wp-admin/upload.php3.02 ▼0.2120.44 ▼14.89

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
defeed_additional_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for de:feed (Beta)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.23 ▼1.061.75 ▲0.0940.18 ▼4.47
Dashboard /wp-admin2,218 ▲334.86 ▼0.20107.69 ▲3.8740.37 ▼1.80
Posts /wp-admin/edit.php2,101 ▲122.04 ▲0.0340.52 ▼0.2734.36 ▲0.47
Add New Post /wp-admin/post-new.php1,554 ▲2118.37 ▼4.76603.09 ▲3.6066.21 ▲16.18
Media Library /wp-admin/upload.php1,394 ▲34.18 ▼0.0994.62 ▼24.6741.00 ▼5.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • defeed_additional_options
    • theysaidso_admin_options
    • widget_recent-posts
    • 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)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/defeed/libs/core-nav-menus/nav-menu.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/defeed/libs/core-nav-menus/nav-menu.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: web syndication, feed, rss, xml

defeed/defeed.php 92% from 13 tests

The main file in "de:feed (Beta)" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,173 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP114938402,549
JavaScript1192132916
CSS116023708

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity13.25
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods56
▷ Static methods1933.93%
▷ Public methods3664.29%
▷ Protected methods00.00%
▷ Private methods2035.71%
Functions38
▷ Named functions3797.37%
▷ Anonymous functions12.63%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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