84% bns-smf-feeds

Code Review | BNS SMF Feeds

WordPress plugin BNS SMF Feeds scored 84% from 54 tests.

About plugin

  • Plugin page: bns-smf-feeds
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.5
  • WordPress version: 6.3.1
  • First release: Dec 8, 2009
  • Latest release: Apr 10, 2016
  • Number of updates: 35
  • Update frequency: every 66.2 days
  • Top authors: cais (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 13,759 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.21ms] Passed 4 tests

An overview of server-side resources used by BNS SMF Feeds
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.05 ▼4.21
Dashboard /wp-admin3.40 ▲0.0947.32 ▼4.98
Posts /wp-admin/edit.php3.45 ▲0.0949.83 ▲3.43
Add New Post /wp-admin/post-new.php5.98 ▲0.0991.93 ▼11.31
Media Library /wp-admin/upload.php3.32 ▲0.0933.49 ▼4.34

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_bns-smf-feeds
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for BNS SMF Feeds
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.56 ▼1.091.73 ▼0.1240.10 ▼4.04
Dashboard /wp-admin2,206 ▲184.85 ▼0.96107.38 ▲2.6843.56 ▲3.20
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0742.68 ▲0.4333.63 ▼2.60
Add New Post /wp-admin/post-new.php1,533 ▲1923.05 ▲5.64617.09 ▼17.0853.48 ▲8.12
Media Library /wp-admin/upload.php1,391 ▲34.16 ▼0.0497.02 ▼1.7841.57 ▼0.11

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_bns-smf-feeds

Smoke tests 75% from 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 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 items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bns-smf-feeds/bns-smf-feeds.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: rss, option panel, smf, multiple widgets

bns-smf-feeds/bns-smf-feeds.php 92% from 13 tests

The principal PHP file in "BNS SMF Feeds" v. 2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and 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
Everything looks great! No dangerous files found in this plugin451 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141332451

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity5.22
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
PNG images were not found in this plugin