84% frontier-set-featured

Code Review | Frontier Set Featured

WordPress plugin Frontier Set Featured scored84%from 54 tests.

About plugin

  • Plugin page: frontier-set-feat...
  • Plugin version: 1.6.3
  • PHP compatiblity: 7.4.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Nov 18, 2014
  • Latest release: Apr 13, 2023
  • Number of updates: 38
  • Update frequency: every 80.7 days
  • Top authors: finnj (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /7,676 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Frontier Set Featured
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.37 ▼0.97
Dashboard /wp-admin3.31 ▲0.0146.12 ▼1.30
Posts /wp-admin/edit.php3.36 ▲0.0147.05 ▼1.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.93 ▼6.36
Media Library /wp-admin/upload.php3.23 ▲0.0134.26 ▲2.28

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Frontier Set Featured: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.511.55 ▼0.1641.65 ▲1.09
Dashboard /wp-admin2,203 ▲125.83 ▲0.95102.73 ▼10.1637.74 ▼3.01
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0339.78 ▲3.8635.35 ▲0.55
Add New Post /wp-admin/post-new.php1,530 ▼323.44 ▲0.35684.75 ▲26.0343.52 ▼8.44
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0196.55 ▲1.5939.82 ▼1.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/frontier-set-featured/frontier-set-featured.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

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
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

frontier-set-featured/frontier-set-featured.php Passed 13 tests

The main PHP script in "Frontier Set Featured" version 1.6.3 is automatically included on every request by WordPress
100 characters long description:
Set featured image automatically from images in the post. Will respect manually added Featured Image

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111842

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.69
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin