84% hirstart-feed

Code Review | Hírstart Feed

WordPress plugin Hírstart Feed scored84%from 54 tests.

About plugin

  • Plugin page: hirstart-feed
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Feb 8, 2017
  • Latest release: Mar 25, 2017
  • Number of updates: 12
  • Update frequency: every 3.6 days
  • Top authors: ggocsei (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /831 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.68ms] Passed 4 tests

Analyzing server-side resources used by Hírstart Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.57 ▼6.43
Dashboard /wp-admin3.32 ▲0.0249.56 ▼3.80
Posts /wp-admin/edit.php3.37 ▲0.0260.09 ▲7.79
Add New Post /wp-admin/post-new.php5.90 ▲0.02101.39 ▼0.80
Media Library /wp-admin/upload.php3.25 ▲0.0238.66 ▲0.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Hírstart Feed: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.301.65 ▼0.1341.04 ▼4.18
Dashboard /wp-admin2,198 ▲215.64 ▲0.1294.32 ▲4.2038.20 ▼6.02
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0239.67 ▲4.3634.89 ▲3.19
Add New Post /wp-admin/post-new.php1,528 ▲222.92 ▼0.65686.63 ▲81.1552.50 ▲1.23
Media Library /wp-admin/upload.php1,403 ▲94.22 ▲0.01101.55 ▲3.8943.43 ▼2.18

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hirstart-feed/trunk/hirstart-feed-rss-template.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hirstart-feed/hirstart-feed-rss-template.php:6

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: hirstarthu, rss

hirstart-feed/hirstart-feed.php Passed 13 tests

The primary PHP file in "Hírstart Feed" version 1.0 is used by WordPress to initiate all plugin functionality
26 characters long description:
RSS Feed a hirstart.hu-hoz

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
There were no executable files found in this plugin190 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31515190

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin