68% upd8-feedback

Code Review | UPD8 Feedback

WordPress plugin UPD8 Feedback scored68%from 54 tests.

About plugin

  • Plugin page: upd8-feedback
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Sep 17, 2016
  • Latest release: Sep 13, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: leviracz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /480 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼7.65ms] Passed 4 tests

Server-side resources used by UPD8 Feedback
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1240.23 ▲0.94
Dashboard /wp-admin3.42 ▲0.0847.54 ▼13.92
Posts /wp-admin/edit.php3.54 ▲0.1844.30 ▼4.72
Add New Post /wp-admin/post-new.php6.01 ▲0.1283.69 ▼10.40
Media Library /wp-admin/upload.php3.35 ▲0.1235.48 ▼1.56
Feedback /wp-admin/edit.php?post_type=upd8_feedback3.3935.35
Add new /wp-admin/post-new.php?post_type=upd8_feedback3.3742.09
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=upd8_feedback3.3433.76

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 6 new options
New tables
wp_upd8_feedback_form_fills
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for UPD8 Feedback
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.72 ▲0.502.39 ▲0.7844.09 ▲1.06
Dashboard /wp-admin2,229 ▲585.58 ▼0.0494.79 ▲7.8049.86 ▲5.37
Posts /wp-admin/edit.php2,131 ▲311.95 ▼0.0335.73 ▼1.7030.83 ▼9.03
Add New Post /wp-admin/post-new.php1,552 ▲2623.13 ▼0.45691.63 ▲36.5753.09 ▼1.01
Media Library /wp-admin/upload.php1,431 ▲314.19 ▲0.0694.00 ▼13.8541.83 ▼7.54
Feedback /wp-admin/edit.php?post_type=upd8_feedback1,1111.9430.7029.23
Add new /wp-admin/post-new.php?post_type=upd8_feedback2,7207.34172.7370.59
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=upd8_feedback1,3502.1226.3229.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_upd8_feedback_form_fills
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=upd8_feedback
    • > Notice in wp-content/plugins/upd8-feedback/includes/UPD8FeedbackCPT.class.php+23
    Undefined property: UPD8FeedbackCPT::$pluginVersion

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
Please fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/upd8-feedback/includes/UPD8Shortcodes.class.php
    • > /wp-content/plugins/upd8-feedback/includes/UPD8FeedbackCPT.class.php
    • > /wp-content/plugins/upd8-feedback/includes/UPD8Feedback.class.php
    • > /wp-content/plugins/upd8-feedback/upd8-feedback.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
The official readme.txt is a good inspiration

upd8-feedback/upd8-feedback.php Passed 13 tests

"UPD8 Feedback" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
30 characters long description:
A Fedback plugin for WordPress

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
There were no executable files found in this plugin797 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP411341438
CSS2290128
JavaScript2200126
PO File1373894
Markdown13011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity20.33
▷ Minimum class complexity3.00
▷ Maximum class complexity30.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods1758.62%
▷ Protected methods00.00%
▷ Private methods1241.38%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.16MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png22.97KB6.72KB▼ 70.76%
assets/screenshot-3.png40.96KB8.45KB▼ 79.36%
assets/screenshot-2.png95.05KB24.10KB▼ 74.64%