10% easy-feature-lists

Code Review | Easy Feature Lists

WordPress plugin Easy Feature Lists scored 10% from 54 tests.

About plugin

  • Plugin page: easy-feature-lists
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 5.8.1
  • First release: Nov 13, 2014
  • Latest release: Dec 19, 2014
  • Number of updates: 9
  • Update frequency: every 4.0 days
  • Top authors: doytch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,622 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/easy-feature-lists/admin/includes/EFLFeatureList.php+62
    Undefined variable: name

Server metrics [RAM: ▼1.81MB] [CPU: ▼187.36ms] Passed 4 tests

A check of server-side resources used by Easy Feature Lists
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.83 ▼0.895.81 ▼15.68
Dashboard /wp-admin1.84 ▼1.215.95 ▼32.79
Posts /wp-admin/edit.php1.85 ▼1.266.45 ▼38.62
Add New Post /wp-admin/post-new.php1.85 ▼3.595.94 ▼640.93
Media Library /wp-admin/upload.php1.85 ▼1.165.43 ▼37.09
Feature Lists /wp-admin/edit.php?post_type=feature_list1.855.39
Add New Feature List /wp-admin/post-new.php?post_type=feature_list1.855.94

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Feature Lists
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,718 ▲11216.20 ▲0.217.36 ▼5.5952.24 ▲1.57
Dashboard /wp-admin3,008 ▲745.89 ▼0.32142.26 ▼11.44118.28 ▲1.38
Posts /wp-admin/edit.php2,776 ▲372.69 ▼0.0266.55 ▲0.7395.18 ▲4.93
Add New Post /wp-admin/post-new.php1,693 ▲19317.13 ▼1.66370.33 ▼6.75126.39 ▲4.36
Media Library /wp-admin/upload.php1,841 ▲345.02 ▼0.01153.46 ▼4.77122.04 ▼1.70
Feature Lists /wp-admin/edit.php?post_type=feature_list1,4302.6268.5775.71
Add New Feature List /wp-admin/post-new.php?post_type=feature_list2,0923.32109.82101.82

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
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/easy-feature-lists/admin/includes/EFLFeatureList.php+62
    Undefined variable: name

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=feature_list
    • > Notice in wp-content/plugins/easy-feature-lists/admin/includes/EFLFeatureList.php+62
    Undefined variable: name
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=feature_list
    • > Notice in wp-content/plugins/easy-feature-lists/admin/includes/EFLFeatureList.php+62
    Undefined variable: version
    • > GET request to /wp-admin/post-new.php?post_type=feature_list
    • > User notice in wp-includes/functions.php+5663
    WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-feature-lists/admin/partials/feature-list-metabox.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-feature-lists/admin/partials/post-metabox.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 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
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === easy-feature-lists === )
You can look at the official readme.txt

easy-feature-lists/easy-feature-lists.php 92% from 13 tests

The principal PHP file in "Easy Feature Lists" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected683 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP16155570486
JavaScript2330164
CSS24033

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.64
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods45
▷ Static methods24.44%
▷ Public methods3373.33%
▷ Protected methods00.00%
▷ Private methods1226.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected