84% finanzfeed-netzwerk

Code Review | FinanzFeed-Netzwerk

WordPress plugin FinanzFeed-Netzwerk scored84%from 54 tests.

About plugin

  • Plugin page: finanzfeed-netzwerk
  • Plugin version: 1.6.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 10, 2021
  • Latest release: Jul 3, 2021
  • Number of updates: 49
  • Update frequency: every 2.9 days
  • Top authors: hobbyinvestor (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /999 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.30MB] [CPU: ▼2.18ms] Passed 4 tests

Server-side resources used by FinanzFeed-Netzwerk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2845.25 ▲8.03
Dashboard /wp-admin3.69 ▲0.34324.27 ▲261.63
Posts /wp-admin/edit.php3.71 ▲0.3542.59 ▼3.24
Add New Post /wp-admin/post-new.php6.18 ▲0.2985.34 ▼12.85
Media Library /wp-admin/upload.php3.52 ▲0.2935.94 ▼0.64
FinanzFeed Netzwerk /wp-admin/options-general.php?page=fcn-network-plugin3.4932.61

Server storage [IO: ▲1.26MB] [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: 21 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_fcn_geldmag_widget
widget_theysaidso_widget
widget_fcn_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for FinanzFeed-Netzwerk
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15513.49 ▼0.7816.89 ▲15.2046.52 ▲4.90
Dashboard /wp-admin2,241 ▲645.64 ▲0.0892.63 ▼10.2239.26 ▼3.30
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0133.54 ▼10.4232.44 ▼9.38
Add New Post /wp-admin/post-new.php1,538 ▲918.11 ▼5.00588.07 ▼39.7362.21 ▼0.09
Media Library /wp-admin/upload.php1,407 ▲104.22 ▲0.05102.92 ▲6.5542.28 ▲2.46
FinanzFeed Netzwerk /wp-admin/options-general.php?page=fcn-network-plugin1,0932.0222.8030.22

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • can_compress_scripts
    • widget_fcn_geldmag_widget
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_fcn_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/finanzfeed-netzwerk/service/fcn_statistics_rest_service.php:3

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: aktien, vermgensaufbau, investieren, geldanlage, immobilien...

finanzfeed-netzwerk/FinanzFeedNetzwerk.php 85% from 13 tests

The main PHP script in "FinanzFeed-Netzwerk" version 1.6.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("finanzfeed-netzwerk.php" instead of "FinanzFeedNetzwerk.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin1,599 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP103152461,569
HTML11028
CSS1001
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.50
▷ Minimum class complexity9.00
▷ Maximum class complexity14.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions62
▷ Named functions5995.16%
▷ Anonymous functions34.84%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/button_geldmag_orange.png2.03KB1.64KB▼ 19.42%
assets/img/geldmag-cover-juli.png49.82KB45.84KB▼ 7.98%
assets/img/button_geldmag_red.png2.03KB1.57KB▼ 22.59%
assets/img/finanzfeed-logo.png18.33KB5.96KB▼ 67.52%
assets/img/button_geldmag_green.png2.18KB1.72KB▼ 20.91%