84% wp-blended-images

Code Review | Wp Blended photos

WordPress plugin Wp Blended photos scored84%from 54 tests.

About plugin

  • Plugin page: wp-blended-images
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.0.0
  • WordPress version: 6.3.1
  • First release: Dec 9, 2015
  • Latest release: Dec 12, 2015
  • Number of updates: 8
  • Update frequency: every 0.8 days
  • Top authors: zacksac (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /849 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.01MB] [CPU: ▼11.24ms] Passed 4 tests

Analyzing server-side resources used by Wp Blended photos
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.34 ▼5.25
Dashboard /wp-admin3.31 ▼0.0453.42 ▼15.26
Posts /wp-admin/edit.php3.36 ▲0.0049.19 ▼7.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.80 ▼17.00
Media Library /wp-admin/upload.php3.23 ▲0.0040.56 ▲4.90
Wp Blended Photos /wp-admin/options-general.php?page=blendedphotos3.3034.17

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Wp Blended photos
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.23 ▼0.121.98 ▲0.1345.53 ▼2.16
Dashboard /wp-admin2,199 ▲195.62 ▲0.0296.58 ▲1.3642.13 ▼0.46
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0136.23 ▼8.1734.09 ▼3.69
Add New Post /wp-admin/post-new.php1,529 ▲123.06 ▲0.11689.13 ▲51.4452.13 ▼11.63
Media Library /wp-admin/upload.php1,401 ▼24.21 ▲0.02101.18 ▼2.2146.97 ▼0.27
Wp Blended Photos /wp-admin/options-general.php?page=blendedphotos1,0691.7930.7955.86

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=blendedphotos
    • > Network (severe)
    wp-admin/images/upload-page-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=blendedphotos
    • > Network (severe)
    wp-content/plugins/wp-blended-images/image/js/jquery-ui/jquery-ui.css - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=blendedphotos
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: satSlider.slider is not a function" "TypeError: satSlider.slider is not a function\n at Object.init (/wp-content/plugins/wp-blended-images/image/js/image_tandoor.js:711:23)\n at helper.init (/wp-content/plugins/wp-blended-images/image/js/image_tandoor.js:614:51)\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=blendedphotos:611:15)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/options-general.php?page=blendedphotos
    • > Network (severe)
    wp-admin/images/overlay-img.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=blendedphotos
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: satSlider.slider is not a function

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: grayscale, blended, effects, photos, image...

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

The main file in "Wp Blended photos" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
93 characters long description:
This plugin can convert selected portions of image into grayscale and create bleneded effect.

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
Success! There were no dangerous files found in this plugin3,200 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS20111,182
JavaScript12331911,110
PHP318581620
SVG100288

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Constants2
▷ Global constants2100.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
16 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
image/images/icons/brush_gray_20.png0.53KB0.34KB▼ 36.01%
image/images/icons/brush_color_4.png0.16KB0.17KB0.00%
image/images/icons/brush_gray_4.png0.12KB0.12KB▼ 4.07%
image/images/upload-img-icon.png6.60KB3.46KB▼ 47.64%
image/images/icons/brush_gray_12.png0.37KB0.29KB▼ 23.76%