83% exportfeed-woo-additional-product-fields

Code Review | ExportFeed - Woo Additional Product Fields

WordPress plugin ExportFeed - Woo Additional Product Fields scored 83% from 54 tests.

About plugin

  • Plugin page: exportfeed-woo-ad...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4
  • WordPress version: 6.3.1
  • First release: May 17, 2019
  • Latest release: May 6, 2020
  • Number of updates: 9
  • Update frequency: every 39.4 days
  • Top authors: PurpleTurtlePro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,431 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.01ms] Passed 4 tests

Analyzing server-side resources used by ExportFeed - Woo Additional Product Fields
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.49 ▼3.05
Dashboard /wp-admin3.37 ▲0.0745.36 ▼2.45
Posts /wp-admin/edit.php3.42 ▲0.0745.36 ▲0.78
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.74 ▲1.18
Media Library /wp-admin/upload.php3.29 ▲0.0734.68 ▲0.69

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for ExportFeed - Woo Additional Product Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.39 ▼1.001.70 ▼0.1245.70 ▲2.48
Dashboard /wp-admin2,209 ▲245.91 ▲0.0597.46 ▼10.2541.13 ▼1.06
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0341.40 ▲3.1736.13 ▲1.14
Add New Post /wp-admin/post-new.php1,514 ▼1917.77 ▼5.68624.37 ▼21.1653.78 ▼6.33
Media Library /wp-admin/upload.php1,391 ▲94.18 ▲0.0296.89 ▲1.8942.15 ▼1.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/exportfeed-woo-additional-product-fields/exportfeed-woo-additional-product-fields.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Upload the plugin and activate it), #2 (In WooCommerce products, go to individual product to find fields), #3 (Add required values in additional product fields and update products), #4 (Allow to display brand value in frontend from settings (coming soon))
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

exportfeed-woo-additional-product-fields/exportfeed-woo-additional-product-fields.php 85% from 13 tests

The primary PHP file in "ExportFeed - Woo Additional Product Fields" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "3.5")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
No dangerous file extensions were detected302 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36988302

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.25
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
4 PNG files occupy 0.32MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png47.21KB20.29KB▼ 57.01%
screenshot-1.png22.86KB11.67KB▼ 48.95%
screenshot-4.png230.16KB75.02KB▼ 67.41%
screenshot-2.png26.86KB12.47KB▼ 53.58%