90% image-seo

Code Review | Image SEO for Gutenberg

WordPress plugin Image SEO for Gutenberg scored90%from 54 tests.

About plugin

  • Plugin page: image-seo
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Jun 27, 2020
  • Latest release: Jun 27, 2020
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Mahesh901122 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.93ms] Passed 4 tests

An overview of server-side resources used by Image SEO for Gutenberg
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.29 ▼4.89
Dashboard /wp-admin3.32 ▲0.0148.23 ▼3.24
Posts /wp-admin/edit.php3.37 ▲0.0145.34 ▼2.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.75 ▼4.73
Media Library /wp-admin/upload.php3.24 ▲0.0134.95 ▲3.34

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Image SEO for Gutenberg
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.17 ▼1.201.65 ▼0.2540.97 ▼5.49
Dashboard /wp-admin2,206 ▲185.83 ▼0.0299.76 ▼15.2137.82 ▼4.52
Posts /wp-admin/edit.php2,086 ▼32.04 ▼0.0239.88 ▼0.3734.41 ▼0.90
Add New Post /wp-admin/post-new.php1,533 ▲523.54 ▲0.47648.34 ▼10.6052.21 ▼13.10
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0393.89 ▼2.9040.56 ▼3.58

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
4 plugin tags: image, seo, gutenberg, image seo

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

Analyzing the main PHP file in "Image SEO for Gutenberg" version 1.0.0
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected400 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34728226
Sass1250102
PHP2156171
CSS1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected