84% forrasfigyelo

Code Review | Forrásfigyelő CSR - pályázati hírek

WordPress plugin Forrásfigyelő CSR - pályázati hírek scored84%from 54 tests.

About plugin

  • Plugin page: forrasfigyelo
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.2
  • WordPress version: 6.3.1
  • First release: Mar 9, 2014
  • Latest release: Apr 27, 2015
  • Number of updates: 10
  • Update frequency: every 41.4 days
  • Top authors: vbliszko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /830 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.95ms] Passed 4 tests

An overview of server-side resources used by Forrásfigyelő CSR - pályázati hírek
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.59 ▲3.67
Dashboard /wp-admin3.34 ▲0.0350.94 ▼0.46
Posts /wp-admin/edit.php3.39 ▲0.0349.87 ▼1.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.32 ▼12.43
Media Library /wp-admin/upload.php3.26 ▲0.0334.15 ▼1.80

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_forrasfigyelo
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Forrásfigyelő CSR - pályázati hírek
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.27 ▼1.001.82 ▲0.2443.90 ▲3.48
Dashboard /wp-admin2,209 ▲244.86 ▼1.00100.62 ▼5.8538.70 ▼6.97
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0340.70 ▲0.3632.95 ▼4.40
Add New Post /wp-admin/post-new.php1,533 ▼123.15 ▼0.13598.04 ▼72.3147.48 ▼6.34
Media Library /wp-admin/upload.php1,388 ▲34.29 ▲0.0696.77 ▼4.4541.99 ▲0.44

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_forrasfigyelo
    • widget_recent-posts

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
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/forrasfigyelo/forrasfigyelo.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: hr, hir, hrek, palyazat, hirek...

forrasfigyelo/forrasfigyelo.php 92% from 13 tests

This is the main PHP file of "Forrásfigyelő CSR - pályázati hírek" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 257 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23211145

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods450.00%
▷ Protected methods00.00%
▷ Private methods450.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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
There are no PNG files in this plugin