94% blend-photos

Code Review | WP Blend Photo

WordPress plugin WP Blend Photo scored 94% from 54 tests.

About plugin

  • Plugin page: blend-photos
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.4
  • WordPress version: 5.8.1
  • First release: Nov 27, 2016
  • Latest release: Dec 3, 2016
  • Number of updates: 4
  • Update frequency: every 8.5 days
  • Top authors: mazharahmedkhan010 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 570 total downloads


Plugin footprint Passed 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.07MB] [CPU: ▼640.47ms] Passed 4 tests

An overview of server-side resources used by WP Blend Photo
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0735.21 ▼0.02
Dashboard /wp-admin3.15 ▲0.0954.51 ▲6.69
Posts /wp-admin/edit.php3.26 ▲0.1650.29 ▲4.54
Add New Post /wp-admin/post-new.php5.48 ▲0.0590.89 ▼2,567.92
Media Library /wp-admin/upload.php3.07 ▲0.0735.95 ▲1.51
WP Blend Photo /wp-admin/options-general.php?page=photoblend-plugin3.0733.67

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Blend Photo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,915 ▲31917.53 ▲1.6012.83 ▲3.4246.88 ▼4.02
Dashboard /wp-admin3,176 ▲2407.90 ▲1.96165.73 ▲11.78106.95 ▼7.49
Posts /wp-admin/edit.php2,971 ▲2324.29 ▲1.5881.80 ▲8.3783.95 ▼3.83
Add New Post /wp-admin/post-new.php1,622 ▲721.16 ▼0.27267.63 ▼28.46117.96 ▲13.28
Media Library /wp-admin/upload.php1,817 ▲104.74 ▼0.28130.30 ▼26.55123.19 ▲7.11
WP Blend Photo /wp-admin/options-general.php?page=photoblend-plugin1,3413.4071.3394.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blend-photos/includes/blp-settings-page.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/blend-photos/includes/blp-form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blend-photos/includes/blp-settings-page.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === blend-photos === )
You can take inspiration from this readme.txt

blend-photos/photoblend.php 92% from 13 tests

The primary PHP file in "WP Blend Photo" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("blend-photos.php" instead of "photoblend.php")

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
There were no executable files found in this plugin1,980 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
There were not PNG files found in your plugin