84% image-filters

Code Review | Image Filters

WordPress plugin Image Filters scored 84% from 54 tests.

About plugin

  • Plugin page: image-filters
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: May 2, 2022
  • Latest release: Apr 7, 2023
  • Number of updates: 8
  • Update frequency: every 42.4 days
  • Top authors: kbat82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,747 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: ▼5.89ms] Passed 4 tests

Server-side resources used by Image Filters
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0342.44 ▲4.72
Dashboard /wp-admin3.32 ▲0.0143.66 ▼5.46
Posts /wp-admin/edit.php3.37 ▲0.0146.53 ▼1.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.01 ▼18.24
Media Library /wp-admin/upload.php3.24 ▲0.0135.61 ▲1.20

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Filters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.25 ▼1.332.08 ▲0.4641.61 ▲3.34
Dashboard /wp-admin2,203 ▲185.79 ▲0.9199.80 ▼16.6938.92 ▼6.69
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0239.85 ▲0.0634.57 ▼6.38
Add New Post /wp-admin/post-new.php6,585 ▲5,06429.47 ▲6.26898.68 ▲303.3374.90 ▲24.01
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.0292.39 ▼8.8140.78 ▼2.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: image, block, lofi, filter, dramatic

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

The main PHP file in "Image Filters" ver. 1.2.4 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
Choose from 22 advanced image filters to bring your images to life. No CSS.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,772 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript62082,8591,374
TypeScript2270461,153
JSON700163
CSS32351
Markdown17012
TOML12010
PHP21136
Rust1163

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There are no PNG files in this plugin