90% wp-image-seo

Code Review | WordPress Image SEO

WordPress plugin WordPress Image SEO scored90%from 54 tests.

About plugin

  • Plugin page: wp-image-seo
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: Nov 10, 2012
  • Latest release: Nov 1, 2022
  • Number of updates: 20
  • Update frequency: every 182.2 days
  • Top authors: naa986 (70%)wpblogtuts (25%)wpreviewproduct (15%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active /23,323 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.91ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Image SEO
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.58 ▼11.05
Dashboard /wp-admin3.36 ▲0.0554.45 ▲10.37
Posts /wp-admin/edit.php3.41 ▲0.0549.14 ▼1.18
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.40 ▼5.25
Media Library /wp-admin/upload.php3.28 ▲0.0533.74 ▲1.85
WP Image SEO /wp-admin/options-general.php?page=wp-image-seo-settings3.2430.21

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 10 new options
New WordPress options
wp_image_seo_override
wp_image_seo_override_title
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
wp_image_seo_alt
widget_theysaidso_widget
can_compress_scripts
wp_image_seo_title

Browser metrics Passed 4 tests

Checking browser requirements for WordPress Image SEO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.74 ▲0.381.72 ▼0.2443.54 ▲0.78
Dashboard /wp-admin2,210 ▲195.88 ▼0.02114.09 ▲5.1343.60 ▼2.79
Posts /wp-admin/edit.php2,090 ▼22.05 ▲0.0534.39 ▼5.4433.44 ▼4.24
Add New Post /wp-admin/post-new.php1,537 ▲423.12 ▲4.58662.09 ▲56.4361.24 ▼3.41
Media Library /wp-admin/upload.php1,392 ▲104.26 ▲0.0899.01 ▼3.0742.49 ▼1.64
WP Image SEO /wp-admin/options-general.php?page=wp-image-seo-settings8842.0222.1824.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • theysaidso_admin_options
    • wp_image_seo_override
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • wp_image_seo_override_title
    • wp_image_seo_title
    • wp_image_seo_alt
    • can_compress_scripts
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: content analysis, readability, images, seo, google search console

wp-image-seo/wp-image-seo.php 92% from 13 tests

The principal PHP file in "WordPress Image SEO" v. 1.1.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

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
Success! There were no dangerous files found in this plugin195 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13421195

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin