90% feedfocal

Code Review | FeedFocal

WordPress plugin FeedFocal scored90%from 54 tests.

About plugin

  • Plugin page: feedfocal
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 4, 2022
  • Latest release: Jul 12, 2023
  • Number of updates: 28
  • Update frequency: every 16.5 days
  • Top authors: feedfocal (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /19,461 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.61MB] [CPU: ▼17.37ms] Passed 4 tests

This is a short check of server-side resources used by FeedFocal
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0530.74 ▼11.40
Dashboard /wp-admin3.38 ▲0.0852.99 ▲3.58
Posts /wp-admin/edit.php3.49 ▲0.1452.77 ▲2.43
Add New Post /wp-admin/post-new.php3.25 ▼2.6342.30 ▼59.11
Media Library /wp-admin/upload.php3.30 ▲0.0735.64 ▼1.39

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

FeedFocal: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,613 ▲1,85214.14 ▲0.186.27 ▲4.6536.11 ▼8.79
Dashboard /wp-admin3,910 ▲1,7305.42 ▼0.25126.65 ▲32.3351.73 ▲12.70
Posts /wp-admin/edit.php3,463 ▲1,3632.56 ▲0.6053.64 ▲13.0740.03 ▲0.92
Add New Post /wp-admin/post-new.php2,868 ▲1,34224.13 ▲0.76691.07 ▲2.5840.40 ▼15.08
Media Library /wp-admin/upload.php2,334 ▲9344.73 ▲0.61119.13 ▲4.4547.51 ▲0.82

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: net promoter score, nps, surveys, ecommerce, tracking...

feedfocal/feedfocal.php Passed 13 tests

The primary PHP file in "FeedFocal" version 1.2.1 is used by WordPress to initiate all plugin functionality
66 characters long description:
Easily collect customer feedback to improve your users experience.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin17,955 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS2202,9849,297
JavaScript22,678798,286
PHP11211578372

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.71
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png60.79KB27.55KB▼ 54.69%
assets/register-1.png30.18KB9.14KB▼ 69.72%