90% woo-image-seo

Code Review | Woo Image SEO

WordPress plugin Woo Image SEO scored90%from 54 tests.

About plugin

  • Plugin page: woo-image-seo
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1+
  • WordPress version: 6.3.1
  • First release: Dec 21, 2018
  • Latest release: Dec 2, 2023
  • Number of updates: 42
  • Update frequency: every 43.1 days
  • Top authors: emandiev (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

5,000+ active /46,832 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Woo Image SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.11 ▼12.54
Dashboard /wp-admin3.35 ▲0.0045.07 ▼16.03
Posts /wp-admin/edit.php3.40 ▲0.0445.17 ▼2.83
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.61 ▼11.38
Media Library /wp-admin/upload.php3.27 ▲0.0430.84 ▼1.51
Woo Image SEO /wp-admin/admin.php?page=woo_image_seo3.2532.63

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
woo_image_seo
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Image SEO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.70 ▲0.571.72 ▲0.0336.82 ▼6.85
Dashboard /wp-admin2,195 ▲245.57 ▼0.0589.87 ▼9.7640.37 ▼7.74
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0439.30 ▲2.7534.90 ▼2.62
Add New Post /wp-admin/post-new.php1,532 ▲623.52 ▲0.27642.11 ▼36.2753.42 ▲2.23
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0298.35 ▲0.8342.84 ▲0.91
Woo Image SEO /wp-admin/admin.php?page=woo_image_seo1,6972.0224.9853.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • woo_image_seo

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: Please take inspiration from this readme.txt

woo-image-seo/woo-image-seo.php Passed 13 tests

The principal PHP file in "Woo Image SEO" v. 1.4.2 is loaded by WordPress automatically on each request
99 characters long description:
Boost your WooCommerce SEO by automatically adding alt tags and title attributes to product images.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,574 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP26179115772
CSS36024377
PO File2148170318
JavaScript1348107

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions24
▷ Named functions1562.50%
▷ Anonymous functions937.50%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/attribute-builder-help-1.png11.12KB6.24KB▼ 43.84%
assets/paypal-donate.png15.77KB8.47KB▼ 46.30%
assets/force-help.png54.39KB60.00KB0.00%
assets/attribute-builder-default.png10.17KB5.04KB▼ 50.47%
assets/attribute-builder-help-2.png26.09KB13.41KB▼ 48.61%