10% woo-frontpage-blog-roll

Code Review | Woo Frontpage Blog Roll

WordPress plugin Woo Frontpage Blog Roll scored 10% from 54 tests.

About plugin

  • Plugin page: woo-frontpage-blo...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Aug 26, 2018
  • Latest release: Aug 27, 2018
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: frametagmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 577 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/woo-frontpage-blog-roll/WooFrontBlogExtension.php+29
    Undefined variable: extension_alias

Server metrics [RAM: ▼1.87MB] [CPU: ▼51.38ms] Passed 4 tests

This is a short check of server-side resources used by Woo Frontpage Blog Roll
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.354.90 ▼35.47
Dashboard /wp-admin2.13 ▼1.175.93 ▼43.79
Posts /wp-admin/edit.php2.13 ▼1.227.05 ▼39.55
Add New Post /wp-admin/post-new.php2.13 ▼3.756.36 ▼86.69
Media Library /wp-admin/upload.php2.13 ▼1.097.19 ▼27.64
Blogroll extension /wp-admin/options-general.php?page=wooFrontBlogextension2.148.30

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
_vertical
widget_recent-comments
_number
widget_theysaidso_widget
_title
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Frontpage Blog Roll
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.37 ▼1.241.74 ▲0.1038.75 ▼2.38
Dashboard /wp-admin2,207 ▲195.77 ▲0.8994.79 ▼10.1938.84 ▼5.83
Posts /wp-admin/edit.php2,093 ▲71.99 ▲0.0235.94 ▲2.1433.39 ▼0.88
Add New Post /wp-admin/post-new.php1,542 ▲2323.27 ▲0.32669.35 ▲18.4254.51 ▼1.13
Media Library /wp-admin/upload.php1,392 ▲14.24 ▼0.01107.11 ▲10.6948.43 ▲1.45
Blogroll extension /wp-admin/options-general.php?page=wooFrontBlogextension8322.0527.5434.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/woo-frontpage-blog-roll/WooFrontBlogExtension.php+29
    Undefined variable: extension_alias
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wooFrontBlogextension
    • > Notice in wp-content/plugins/woo-frontpage-blog-roll/WooFrontBlogExtension.php+43
    Undefined variable: extension_alias
    • > GET request to /wp-admin/options-general.php?page=wooFrontBlogextension
    • > Notice in wp-content/plugins/woo-frontpage-blog-roll/assets/lib/PluginOptionsPage.php+39
    Undefined index: action
    • > GET request to /wp-admin/options-general.php?page=wooFrontBlogextension
    • > Notice in wp-content/plugins/woo-frontpage-blog-roll/assets/lib/PluginOptionsPage.php+58
    Undefined index: saved
    • > GET request to /wp-admin/options-general.php?page=wooFrontBlogextension
    • > Notice in wp-content/plugins/woo-frontpage-blog-roll/assets/lib/PluginOptionsPage.php+60
    Undefined index: reset
    • > GET request to /wp-admin/options-general.php?page=wooFrontBlogextension
    • > Notice in wp-content/plugins/woo-frontpage-blog-roll/assets/lib/PluginOptionsPage.php+87
    Undefined index: description

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
6 plugin tags: homepage blogroll, blog display, storefront, woocommerce blogs, homepage control...

woo-frontpage-blog-roll/WooFrontBlogExtension.php 85% from 13 tests

The main PHP script in "Woo Frontpage Blog Roll" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-frontpage-blog-roll.php" instead of "WooFrontBlogExtension.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected362 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43216354
CSS1108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity20.00
▷ Minimum class complexity12.00
▷ Maximum class complexity28.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants00.00%
▷ Class constants11100.00%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin