78% wp-seo-images

Code Review | WordPress SEO Images

WordPress plugin WordPress SEO Images scored 78% from 54 tests.

About plugin

  • Plugin page: wp-seo-images
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Feb 25, 2013
  • Latest release: Feb 28, 2013
  • Number of updates: 13
  • Update frequency: every 0.4 days
  • Top authors: Adrenalina (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 10,744 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by WordPress SEO Images
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.65 ▼0.59
Dashboard /wp-admin3.34 ▲0.0347.29 ▲0.83
Posts /wp-admin/edit.php3.39 ▲0.0341.96 ▼4.33
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.01 ▼17.16
Media Library /wp-admin/upload.php3.26 ▲0.0335.42 ▲2.22
SEO Images /wp-admin/options-general.php?page=wp-seo-images3.2327.94

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

WordPress SEO Images: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.74 ▼0.575.52 ▲3.7244.94 ▲2.30
Dashboard /wp-admin2,212 ▲244.89 ▼0.9998.54 ▼10.3437.70 ▼5.02
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0134.90 ▼8.1331.91 ▼4.08
Add New Post /wp-admin/post-new.php1,611 ▲8323.70 ▲5.68685.11 ▲38.9058.07 ▼1.91
Media Library /wp-admin/upload.php1,397 ▲64.26 ▲0.0794.74 ▼8.4441.42 ▼2.33
SEO Images /wp-admin/options-general.php?page=wp-seo-images8472.0423.2931.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wp-seo-images
    • > Notice in wp-content/plugins/wp-seo-images/update_options.php+22
    Undefined variable: qselect_watermark_text
    • > GET request to /wp-admin/options-general.php?page=wp-seo-images
    • > Notice in wp-content/plugins/wp-seo-images/update_options.php+22
    Trying to get property 'wgi_text' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-seo-images/update_options.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-seo-images/wp-seo-images.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: google images, seo google-images, seo images, wordpress seo images

wp-seo-images/wp-seo-images.php Passed 13 tests

The entry point to "WordPress SEO Images" version 1.1 is a PHP file that has certain tags in its header comment area
90 characters long description:
SEO image Manager, Improve google images ranking, developed by AdrenalinaIG + Interdigital

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected211 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2378193
JavaScript13118

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.23
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods133.33%
▷ Protected methods00.00%
▷ Private methods266.67%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/screenshot-2.png25.06KB0.00KB▼ 100.00%
assets/screenshot-1.png40.93KB12.37KB▼ 69.77%