84% auto-image-from-title

Code Review | Auto Image From Title

WordPress plugin Auto Image From Title scored84%from 54 tests.

About plugin

  • Plugin page: auto-image-from-t...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2023
  • Latest release: Jul 17, 2023
  • Number of updates: 4
  • Update frequency: every 32.2 days
  • Top authors: plentygram (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /203 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.33MB] [CPU: ▼20.60ms] Passed 4 tests

Analyzing server-side resources used by Auto Image From Title
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0432.50 ▼5.23
Dashboard /wp-admin3.31 ▲0.0148.63 ▼4.25
Posts /wp-admin/edit.php3.36 ▲0.0046.98 ▼7.42
Add New Post /wp-admin/post-new.php4.60 ▼1.2844.44 ▼65.50
Media Library /wp-admin/upload.php3.23 ▲0.0037.05 ▲5.76

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Auto Image From Title
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.28 ▼0.071.64 ▼0.1141.21 ▼3.94
Dashboard /wp-admin2,211 ▲315.58 ▼0.0692.46 ▼6.6640.51 ▼3.53
Posts /wp-admin/edit.php2,116 ▲162.00 ▼0.0035.85 ▼0.5032.77 ▼4.65
Add New Post /wp-admin/post-new.php1,548 ▲1318.32 ▲0.22644.50 ▼4.9056.28 ▼10.43
Media Library /wp-admin/upload.php1,413 ▲134.18 ▼0.02104.87 ▲0.3246.46 ▼2.92

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-image-from-title/auto-image-from-title.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 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: auto, image, duckduckgo, title, api

auto-image-from-title/auto-image-from-title.php Passed 13 tests

The main PHP file in "Auto Image From Title" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
85 characters long description:
Automatically inserts an image from the post title using DuckDuckGo image search API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142384

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin