78% launchpad-article-feedback

Code Review | Launchpad Article Feedback

WordPress plugin Launchpad Article Feedback scored 78% from 54 tests.

About plugin

  • Plugin page: launchpad-article...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Apr 19, 2019
  • Latest release: May 8, 2019
  • Number of updates: 14
  • Update frequency: every 1.4 days
  • Top authors: vinhdd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.31MB] [CPU: ▼17.32ms] Passed 4 tests

An overview of server-side resources used by Launchpad Article Feedback
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0424.90 ▼15.70
Dashboard /wp-admin3.34 ▲0.0445.54 ▼4.44
Posts /wp-admin/edit.php3.39 ▲0.0448.56 ▲1.92
Add New Post /wp-admin/post-new.php4.63 ▼1.2544.66 ▼48.67
Media Library /wp-admin/upload.php3.27 ▲0.0434.56 ▼0.47
Launchpad Article Feedback /wp-admin/options-general.php?page=article-feeback-settings3.2128.82

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
feedback_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Launchpad Article Feedback
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,948 ▲21313.72 ▼0.685.70 ▲3.8536.70 ▼7.34
Dashboard /wp-admin2,243 ▲555.24 ▲0.37109.52 ▼4.8442.06 ▼0.98
Posts /wp-admin/edit.php2,131 ▲422.32 ▲0.3041.84 ▲6.2433.89 ▲1.19
Add New Post /wp-admin/post-new.php1,552 ▲1923.26 ▼0.09634.01 ▼21.9835.83 ▼27.77
Media Library /wp-admin/upload.php1,422 ▲344.39 ▲0.18103.23 ▲4.6445.89 ▲2.63
Launchpad Article Feedback /wp-admin/options-general.php?page=article-feeback-settings1,4362.3947.2755.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • feedback_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+380
    Undefined index: lp-select-position
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+394
    Undefined index: lp-show-on
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+401
    Undefined index: lp-title-phrase-1
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+408
    Undefined index: lp-title-phrase-2
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+415
    Undefined index: lp-title-phrase-3
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+422
    Undefined index: lp-title-phrase-4
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+429
    Undefined index: lp-title-phrase-5
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+436
    Undefined index: lp-title-phrase-6
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+443
    Undefined index: lp-title-phrase-7
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+450
    Undefined index: lp-title-phrase-8
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+457
    Undefined index: lp-title-phrase-9
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+464
    Undefined index: lp-title-phrase-10
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+471
    Undefined index: lp-your-name
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+477
    Undefined index: lp-your-email
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+483
    Undefined index: lp-button-yes
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+489
    Undefined index: lp-button-no
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+495
    Undefined index: lp-button-submit
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+501
    Undefined index: lp-facebook-url
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+507
    Undefined index: lp-pinterest-url
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+513
    Undefined index: lp-exclude-on
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+521
    Undefined index: lp-color-yes
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/launchpad-article-feedback/index.php+527
    Undefined index: lp-color-no

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/launchpad-article-feedback/index.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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: wordpress article feedback, article feedback, launchpad article feedback, article reviews, was this article helpful...

launchpad-article-feedback/index.php 85% from 13 tests

The main PHP script in "Launchpad Article Feedback" version 1.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("launchpad-article-feedback.php" instead of "index.php")
  • 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin3,778 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS436162,360
SVG100655
PHP14964453
PO File29090228
JavaScript2216082

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods312.50%
▷ Public methods2291.67%
▷ Protected methods14.17%
▷ Private methods14.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.23MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot.png233.12KB108.14KB▼ 53.61%
assets/images/csscheckbox_82405711c484478c3bbca93e304dc9c3.png0.49KB0.46KB▼ 5.78%