78% image-plus

Code Review | Image Plus

WordPress plugin Image Plus scored78%from 54 tests.

About plugin

  • Plugin page: image-plus
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 30, 2022
  • Latest release: May 31, 2023
  • Number of updates: 16
  • Update frequency: every 11.7 days
  • Top authors: imageswithbenefits (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /886 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.47MB] [CPU: ▲2.52ms] Passed 4 tests

An overview of server-side resources used by Image Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.4943.92 ▼0.34
Dashboard /wp-admin3.81 ▲0.4754.88 ▲7.61
Posts /wp-admin/edit.php3.93 ▲0.5455.43 ▲5.91
Add New Post /wp-admin/post-new.php6.36 ▲0.4490.91 ▼3.12
Media Library /wp-admin/upload.php3.73 ▲0.4743.29 ▲9.52
Library /wp-admin/edit.php?post_type=image_plus3.7847.40
Settings /wp-admin/edit.php?post_type=image_plus&page=imgwb-settings3.7040.14

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: no files
Database: no new tables, 9 new options
New WordPress options
imgwb_updated
widget_recent-posts
can_compress_scripts
db_upgraded
imgwb_api_counter
imgwb_words_activation_id
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Plus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,972 ▲22613.49 ▼0.807.38 ▲5.5540.34 ▲1.32
Dashboard /wp-admin2,300 ▲1094.92 ▼0.9898.45 ▼12.7382.33 ▲41.08
Posts /wp-admin/edit.php2,195 ▲1062.04 ▲0.0438.33 ▼1.5634.23 ▼1.80
Add New Post /wp-admin/post-new.php6,283 ▲4,75019.87 ▼3.19869.81 ▲169.3935.07 ▼21.01
Media Library /wp-admin/upload.php1,491 ▲1004.24 ▲0.08101.54 ▲2.1571.69 ▲26.36
Library /wp-admin/edit.php?post_type=image_plus1,4572.0537.0331.53
Settings /wp-admin/edit.php?post_type=image_plus&page=imgwb-settings9801.7226.3934.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • imgwb_words_activation_id
    • can_compress_scripts
    • widget_theysaidso_widget
    • imgwb_api_counter
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function show_admin_bar() in wp-content/plugins/image-plus/template.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=image_plus
    • > Javascript (severe) in unknown
    /wp-admin/edit.php?post_type=image_plus - Access to script at 'https://embed.tawk.to/646bf9c7ad80445890ee79fe/1h12sfd44' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=image_plus&page=imgwb-settings
    • > Network (severe)
    https://embed.tawk.to/646bf9c7ad80445890ee79fe/1h12sfd44 - Failed to load resource: net::ERR_FAILED
    • > GET request to /wp-admin/edit.php?post_type=image_plus&page=imgwb-settings
    • > Javascript (severe) in unknown
    /wp-admin/edit.php?post_type=image_plus&page=imgwb-settings - Access to script at 'https://embed.tawk.to/646bf9c7ad80445890ee79fe/1h12sfd44' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5, #6 in image-plus/assets to your readme.txt
You can take inspiration from this readme.txt

image-plus/image-plus.php Passed 13 tests

Analyzing the main PHP file in "Image Plus" version 1.2.5
62 characters long description:
Generate more clicks, leads and sales using AI-powered images.

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
Success! There were no dangerous files found in this plugin3,280 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP35066922,346
JavaScript314267554
CSS3190232
JSON10075
SVG10073

PHP code Passed 2 tests

An short overview of 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.36
Average class complexity293.00
▷ Minimum class complexity293.00
▷ Maximum class complexity293.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods5272.22%
▷ Protected methods00.00%
▷ Private methods2027.78%
Functions14
▷ Named functions17.14%
▷ Anonymous functions1392.86%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin