89% wp-featured-content-and-slider

Code Review | WP Featured Content and Slider

WordPress plugin WP Featured Content and Slider scored89%from 54 tests.

About plugin

  • Plugin page: wp-featured-conte...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2015
  • Latest release: Nov 24, 2023
  • Number of updates: 82
  • Update frequency: every 35.7 days
  • Top authors: anoopranawat (76.83%)wponlinesupport (24.39%)

Code review

54 tests

User reviews

8 reviews

Install metrics

3,000+ active /79,602 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.36MB] [CPU: ▲1.26ms] Passed 4 tests

Analyzing server-side resources used by WP Featured Content and Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3437.85 ▲0.26
Dashboard /wp-admin3.65 ▲0.3547.21 ▲1.08
Posts /wp-admin/edit.php3.77 ▲0.4149.01 ▲2.38
Add New Post /wp-admin/post-new.php6.27 ▲0.3994.71 ▲1.30
Media Library /wp-admin/upload.php3.58 ▲0.3537.16 ▲6.22

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 51 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
wpos_anylc_site_uid
wpos_anylc_redirect

Browser metrics Passed 4 tests

WP Featured Content and Slider: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,529 ▼1,25813.40 ▼0.981.68 ▼0.2316.70 ▼21.87
Dashboard /wp-admin2,221 ▲435.54 ▼0.19100.43 ▼12.0052.93 ▲6.53
Posts /wp-admin/edit.php2,122 ▲222.01 ▲0.0739.95 ▼0.5335.54 ▼0.60
Add New Post /wp-admin/post-new.php1,755 ▲22923.16 ▲0.29631.70 ▲12.6450.15 ▼5.17
Media Library /wp-admin/upload.php1,425 ▲254.24 ▲0.0798.81 ▼1.8440.26 ▼4.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • wpos_anylc_redirect
    • wpos_anylc_site_uid
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-featured-content-and-slider/wp-featured-content-and-slider.php 92% from 13 tests

"WP Featured Content and Slider" version 1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin5,268 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP235117572,166
JavaScript67954263
CSS61013167
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity25.80
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity4.76
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods13.03%
▷ Public methods3193.94%
▷ Protected methods00.00%
▷ Private methods26.06%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wpos-analytics/assets/images/icon.png9.46KB3.79KB▼ 59.89%
assets/css/arrow-left-white.png2.94KB0.17KB▼ 94.18%
assets/css/arrow-right-white.png2.91KB0.18KB▼ 93.93%
assets/css/arrow-left.png1.15KB0.17KB▼ 85.11%
wpos-analytics/assets/images/wpos-logo.png9.04KB3.17KB▼ 64.91%