84% feedoptimise

Code Review | Feedoptimise

WordPress plugin Feedoptimise scored 84% from 54 tests.

About plugin

  • Plugin page: feedoptimise
  • Plugin version: 1.1.27
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2015
  • Latest release: Aug 7, 2023
  • Number of updates: 118
  • Update frequency: every 25.8 days
  • Top authors: feedoptimise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 7,815 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.94ms] Passed 4 tests

This is a short check of server-side resources used by Feedoptimise
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0248.17 ▼11.45
Dashboard /wp-admin3.34 ▲0.0351.37 ▼4.63
Posts /wp-admin/edit.php3.39 ▲0.0349.23 ▼1.61
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.94 ▼10.08
Media Library /wp-admin/upload.php3.26 ▲0.0335.71 ▼1.37
Feedoptimise /wp-admin/options-general.php?page=woocommerce-feedoptimise3.2334.14

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Feedoptimise: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲413.66 ▲0.395.02 ▲3.1343.27 ▼5.51
Dashboard /wp-admin2,210 ▲44.85 ▼0.99107.50 ▼5.1340.94 ▼1.77
Posts /wp-admin/edit.php2,093 ▲12.02 ▲0.0337.97 ▲1.7635.32 ▲2.41
Add New Post /wp-admin/post-new.php1,547 ▲1418.42 ▼4.73620.03 ▼27.1056.30 ▲2.05
Media Library /wp-admin/upload.php1,392 ▲44.18 ▼0.0097.47 ▼1.2240.71 ▼2.79
Feedoptimise /wp-admin/options-general.php?page=woocommerce-feedoptimise8552.0729.1029.41

Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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/feedoptimise/woocommerce-feedoptimise.php:20

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: feed-optimise, exporter, woocommerce, feedoptimise, datafeeds

feedoptimise/woocommerce-feedoptimise.php 85% from 13 tests

Analyzing the main PHP file in "Feedoptimise" version 1.1.27
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 299 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("feedoptimise.php" instead of "woocommerce-feedoptimise.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected678 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2215114678

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity129.00
▷ Minimum class complexity129.00
▷ Maximum class complexity129.00
Average method complexity10.14
▷ Minimum method complexity2.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods17.14%
▷ Protected methods1392.86%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png12.46KB5.01KB▼ 59.75%