62% feedstats-de

Code Review | FeedStats

WordPress plugin FeedStats scored 62% from 54 tests.

About plugin

  • Plugin page: feedstats-de
  • Plugin version: 3.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5-4.8
  • WordPress version: 6.3.1
  • First release: Mar 19, 2007
  • Latest release: Mar 3, 2020
  • Number of updates: 117
  • Update frequency: every 40.5 days
  • Top authors: Bueltge (98.29%)vanvox (2.56%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active / 71,916 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▲2.37ms] Passed 4 tests

A check of server-side resources used by FeedStats
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.05 ▲6.98
Dashboard /wp-admin3.32 ▲0.0247.73 ▼0.16
Posts /wp-admin/edit.php3.37 ▲0.0150.31 ▲6.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.79 ▼0.91
Media Library /wp-admin/upload.php3.24 ▲0.0135.86 ▲4.40
FeedStats 0 /wp-admin/index.php?page=feedstats-de/feedstats-de.php3.1833.99

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: 2 new tables, 11 new options
New tables
wp_fs_visits
wp_fs_data
New WordPress options
fs_days
fs_session_timeout
theysaidso_admin_options
widget_recent-comments
fs_user_level
widget_theysaidso_widget
can_compress_scripts
fs_view_days
db_upgraded
fs_visits_online
...

Browser metrics Passed 4 tests

Checking browser requirements for FeedStats
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.19 ▼1.101.84 ▼0.2644.99 ▼1.45
Dashboard /wp-admin2,217 ▲265.90 ▲0.9998.11 ▼6.5736.50 ▼6.90
Posts /wp-admin/edit.php2,097 ▲82.00 ▲0.0137.81 ▼2.8733.75 ▼1.64
Add New Post /wp-admin/post-new.php1,551 ▲3718.17 ▲0.66610.54 ▼4.0947.96 ▲2.61
Media Library /wp-admin/upload.php1,399 ▲144.22 ▼0.0093.86 ▼2.6648.75 ▲7.12
FeedStats /wp-admin/feedstats-de-settings.php260.440.1016.96
FeedStats 0 /wp-admin/index.php?page=feedstats-de/feedstats-de.php9522.0521.5833.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_fs_visits
    • wp_fs_data
  • This plugin does not fully uninstall, leaving 11 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • fs_visits_online
    • fs_days
    • fs_user_level
    • fs_session_timeout
    • theysaidso_admin_options
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/index.php?page=feedstats-de/feedstats-de.php
    • > Notice in wp-content/plugins/feedstats-de/feedstats-de.php+224
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/feedstats-de/feedstats-de.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/feedstats-de-settings.php
    • > Network (severe)
    wp-admin/feedstats-de-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in feedstats-de/assets to your readme.txt
You can look at the official readme.txt

feedstats-de/feedstats-de.php Passed 13 tests

The entry point to "FeedStats" version 3.8.2 is a PHP file that has certain tags in its header comment area
31 characters long description:
Simple statistictool for feeds.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,625 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PO File168401,3191,859
PHP216662766

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected