78% private-feed-key

Code Review | Private Feed Key

WordPress plugin Private Feed Key scored 78% from 54 tests.

About plugin

  • Plugin page: private-feed-key
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 5.8.1
  • First release: Aug 17, 2013
  • Latest release: Aug 17, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mikegrant (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,020 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼1.01MB] [CPU: ▼182.74ms] Passed 4 tests

A check of server-side resources used by Private Feed Key
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.59 ▼0.1317.50 ▼6.99
Dashboard /wp-admin2.64 ▼0.4221.74 ▼26.78
Posts /wp-admin/edit.php2.64 ▼0.4716.27 ▼33.01
Add New Post /wp-admin/post-new.php2.64 ▼2.8018.89 ▼660.59
Media Library /wp-admin/upload.php2.64 ▼0.3621.38 ▼10.56
Private Feed Key /wp-admin/options-general.php?page=PrivateFeedKey2.6422.08

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
PrivateFeedKey

Browser metrics Passed 4 tests

Checking browser requirements for Private Feed Key
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.82 ▲0.255.36 ▼4.2450.06 ▼0.88
Dashboard /wp-admin2,972 ▲385.89 ▼0.08147.56 ▼6.91124.91 ▲4.98
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0070.57 ▲0.4398.85 ▲3.24
Add New Post /wp-admin/post-new.php1,686 ▲18818.70 ▼0.17376.07 ▼3.93113.35 ▼7.97
Media Library /wp-admin/upload.php1,815 ▲55.02 ▲0.02144.44 ▼28.34131.36 ▲5.53
Private Feed Key /wp-admin/options-general.php?page=PrivateFeedKey1,3292.0863.05118.48

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/private-feed-key/private-feed-key.php+102
    Undefined index: feedkey

Smoke tests 50% 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)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=PrivateFeedKey
    • > Notice in wp-content/plugins/private-feed-key/private-feed-key.php+102
    Undefined index: feedkey
    • > GET request to /wp-admin/options-general.php?page=PrivateFeedKey
    • > Notice in wp-content/plugins/private-feed-key/private-feed-key.php+206
    Undefined variable: charset_options
    • > GET request to /wp-admin/options-general.php?page=PrivateFeedKey
    • > Notice in wp-content/plugins/private-feed-key/private-feed-key.php+226
    Undefined variable: keylength_options
    • > GET request to /wp-admin/options-general.php?page=PrivateFeedKey
    • > Notice in wp-content/plugins/private-feed-key/private-feed-key.php+242
    Undefined variable: salt_options
    • > GET request to /wp-admin/options-general.php?page=PrivateFeedKey
    • > Notice in wp-content/plugins/private-feed-key/private-feed-key.php+260
    Undefined variable: hash_options
    • > GET request to /wp-admin/options-general.php?page=PrivateFeedKey
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=PrivateFeedKey
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/private-feed-key/private-feed-key.php:59

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

private-feed-key/private-feed-key.php 92% from 13 tests

The entry point to "Private Feed Key" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 198 characters long)

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
Success! There were no dangerous files found in this plugin316 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14619316

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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