83% seo-quick-images

Code Review | SEO Quick Images

WordPress plugin SEO Quick Images scored83%from 54 tests.

About plugin

  • Plugin page: seo-quick-images
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 12, 2022
  • Latest release: Jul 11, 2023
  • Number of updates: 9
  • Update frequency: every 37.2 days
  • Top authors: seomantis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,187 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.93ms] Passed 4 tests

Server-side resources used by SEO Quick Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2135.67 ▲0.26
Dashboard /wp-admin3.52 ▲0.2145.73 ▼7.68
Posts /wp-admin/edit.php3.63 ▲0.2751.07 ▲2.94
Add New Post /wp-admin/post-new.php5.65 ▼0.2478.74 ▼15.13
Media Library /wp-admin/upload.php3.44 ▲0.2134.31 ▼1.15
Images /wp-admin/admin.php?page=seo-images3.4131.72
SEO Plugins /wp-admin/admin.php?page=wp-seo-plugins-login3.4232.90

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
seo_images_show_author
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

SEO Quick Images: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.72 ▲0.101.57 ▲0.0240.63 ▲4.50
Dashboard /wp-admin2,225 ▲475.63 ▼0.0290.73 ▼29.9843.34 ▼2.50
Posts /wp-admin/edit.php2,127 ▲271.99 ▼0.0339.23 ▼1.3036.86 ▼2.98
Add New Post /wp-admin/post-new.php6,480 ▲4,95426.03 ▲2.67855.24 ▲186.34139.32 ▲83.18
Media Library /wp-admin/upload.php1,427 ▲274.15 ▼0.0496.22 ▼1.8643.71 ▼0.49
Images /wp-admin/admin.php?page=seo-images8442.0324.5125.54
SEO Plugins /wp-admin/admin.php?page=wp-seo-plugins-login9571.9722.6022.93

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • seo_images_show_author
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/seo-quick-images/view/seoImagesSettings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/seo-quick-images/view/settings.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/seo-quick-images/wp_seo_plugins.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

seo-quick-images/seo_images.php 85% from 13 tests

The primary PHP file in "SEO Quick Images" version 1.4.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("seo-quick-images.php" instead of "seo_images.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,211 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8165991,267
JavaScript1111129831
CSS151113

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity44.00
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity4.95
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods1885.71%
▷ Protected methods00.00%
▷ Private methods314.29%
Functions12
▷ Named functions866.67%
▷ Anonymous functions433.33%
Constants9
▷ Global constants9100.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
There are no PNG files in this plugin