90% featured-post-creative

Code Review | Featured Post Creative

WordPress plugin Featured Post Creative scored90%from 54 tests.

About plugin

  • Plugin page: featured-post-cre...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2016
  • Latest release: Nov 21, 2023
  • Number of updates: 53
  • Update frequency: every 48.8 days
  • Top authors: anoopranawat (56.6%)wponlinesupport (45.28%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /48,597 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.93ms] Passed 4 tests

A check of server-side resources used by Featured Post Creative
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.08 ▼0.63
Dashboard /wp-admin3.38 ▲0.0747.77 ▼4.86
Posts /wp-admin/edit.php3.49 ▲0.1448.56 ▲1.72
Add New Post /wp-admin/post-new.php5.99 ▲0.1186.17 ▼3.80
Media Library /wp-admin/upload.php3.30 ▲0.0735.62 ▲1.58

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 47 new files
Database: no new tables, 11 new options
New WordPress options
widget_recent-comments
wpos_anylc_redirect
db_upgraded
theysaidso_admin_options
widget_recent-posts
wpos_anylc_site_uid
wpfp_options
can_compress_scripts
widget_wpfp_featuredlist_widget
wpfp_plugin_version
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featured Post Creative
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,538 ▼1,22412.17 ▼2.591.52 ▼0.1618.41 ▼25.97
Dashboard /wp-admin2,218 ▲415.58 ▼0.06101.83 ▲8.3952.34 ▲5.51
Posts /wp-admin/edit.php2,138 ▲382.02 ▲0.0239.96 ▼0.7335.83 ▲0.84
Add New Post /wp-admin/post-new.php6,255 ▲4,72925.85 ▲2.34856.29 ▲196.6034.72 ▼21.37
Media Library /wp-admin/upload.php1,419 ▲224.22 ▲0.0894.98 ▼2.9039.90 ▼4.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 11 options
    • can_compress_scripts
    • widget_recent-comments
    • wpos_anylc_redirect
    • db_upgraded
    • theysaidso_admin_options
    • widget_wpfp_featuredlist_widget
    • wpfp_plugin_version
    • widget_recent-posts
    • widget_theysaidso_widget
    • wpfp_options
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: add featured posts, responsive featured post, featured post grid, featured post, display featured posts...

featured-post-creative/wpos-featured-post-creative.php 92% from 13 tests

The main file in "Featured Post Creative" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("featured-post-creative.php" instead of "wpos-featured-post-creative.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,947 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP266959462,632
CSS4106163
JavaScript4459150
JSON2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity16.89
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes222.22%
Methods54
▷ Static methods23.70%
▷ Public methods5092.59%
▷ Protected methods00.00%
▷ Private methods47.41%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.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
9 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wpos-analytics/assets/images/wpos-logo.png9.04KB3.17KB▼ 64.91%
wpos-analytics/assets/images/icon.png15.95KB6.35KB▼ 60.21%
wpos-plugins/assets/images/essential-plugin-16.png0.46KB0.66KB0.00%
wpos-plugins/assets/images/essential-plugin-50.png0.80KB1.07KB0.00%
wpos-plugins/assets/images/wponlinesupport-logo.png5.94KB4.45KB▼ 25.07%