84% wp-photo-effects

Code Review | WP Photo Effects

WordPress plugin WP Photo Effects scored84%from 54 tests.

About plugin

  • Plugin page: wp-photo-effects
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.3
  • WordPress version: 6.3.1
  • First release: Mar 6, 2016
  • Latest release: May 21, 2022
  • Number of updates: 64
  • Update frequency: every 35.4 days
  • Top authors: Muhammad Rehman (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /3,957 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: ▼10.73ms] Passed 4 tests

This is a short check of server-side resources used by WP Photo Effects
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.84 ▲1.94
Dashboard /wp-admin3.33 ▼0.0251.64 ▼14.97
Posts /wp-admin/edit.php3.38 ▲0.0250.80 ▼10.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.99 ▼19.27
Media Library /wp-admin/upload.php3.25 ▲0.0241.31 ▲1.45

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Photo Effects
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.16 ▼1.223.22 ▲1.4643.05 ▲0.19
Dashboard /wp-admin2,206 ▲185.85 ▼0.11110.32 ▲2.0545.41 ▲3.33
Posts /wp-admin/edit.php2,089 ▼72.02 ▲0.0235.11 ▼5.8932.70 ▼3.05
Add New Post /wp-admin/post-new.php1,538 ▲923.20 ▲4.96645.07 ▼16.9856.32 ▼1.32
Media Library /wp-admin/upload.php1,382 ▼64.28 ▲0.0598.77 ▼15.9444.28 ▼7.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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/wp-photo-effects/photo-effect.php:17

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: hover effects, image effects, image hover effects, image hover, photos hover effects

wp-photo-effects/photo-effect.php 92% from 13 tests

The entry point to "WP Photo Effects" version 1.2.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-photo-effects.php" instead of "photo-effect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,147 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS310332865
JavaScript23255176
PHP11819106

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin