78% jetpack-feedback-exporter

Code Review | Jetpack Feedback Exporter

WordPress plugin Jetpack Feedback Exporter scored78%from 54 tests.

About plugin

  • Plugin page: jetpack-feedback-...
  • Plugin version: 1.23
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.51
  • WordPress version: 6.3.1
  • First release: Nov 25, 2012
  • Latest release: May 6, 2013
  • Number of updates: 9
  • Update frequency: every 18.0 days
  • Top authors: jtwiest (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /2,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.27ms] Passed 4 tests

An overview of server-side resources used by Jetpack Feedback Exporter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.54 ▼9.00
Dashboard /wp-admin3.31 ▲0.0147.59 ▼7.70
Posts /wp-admin/edit.php3.36 ▲0.0047.49 ▲0.49
Add New Post /wp-admin/post-new.php5.89 ▲0.00102.27 ▼0.86
Media Library /wp-admin/upload.php3.23 ▲0.0041.52 ▲5.11
Feedback Exporter /wp-admin/tools.php?page=feedback_exporter3.1732.59

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Jetpack Feedback Exporter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8314.48 ▲0.113.41 ▲1.6943.54 ▼0.97
Dashboard /wp-admin2,210 ▲225.83 ▲0.97109.84 ▲0.0343.04 ▼2.39
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.1538.95 ▼4.7734.61 ▼1.84
Add New Post /wp-admin/post-new.php1,545 ▲323.22 ▲4.93608.25 ▲12.1455.73 ▼1.96
Media Library /wp-admin/upload.php1,392 ▲44.21 ▼0.00107.89 ▲6.4646.03 ▼3.46
Feedback Exporter /wp-admin/tools.php?page=feedback_exporter7692.0524.2424.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/tools.php?page=feedback_exporter
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=feedback_exporter
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jetpack-feedback-exporter/feedback-exporter.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === jetpack-feedback-exporter === )
  • Screenshots: Please add an image for screenshot #1 (Feedback Export Screen)
You can take inspiration from this readme.txt

jetpack-feedback-exporter/feedback-exporter.php 92% from 13 tests

The main PHP script in "Jetpack Feedback Exporter" version 1.23 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jetpack-feedback-exporter.php" instead of "feedback-exporter.php")

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 plugin140 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14855140

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.99KB7.57KB▼ 70.89%