78% easy-image-filters

Code Review | Easy Image Filters

WordPress plugin Easy Image Filters scored78%from 54 tests.

About plugin

  • Plugin page: easy-image-filters
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 20, 2016
  • Latest release: May 7, 2023
  • Number of updates: 9
  • Update frequency: every 296.1 days
  • Top authors: kiranpotphode (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /6,336 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.02MB] [CPU: ▼4.38ms] Passed 4 tests

A check of server-side resources used by Easy Image Filters
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.38 ▼0.19
Dashboard /wp-admin3.32 ▲0.0251.20 ▼0.96
Posts /wp-admin/edit.php3.37 ▲0.0249.90 ▼4.61
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.54 ▼11.75
Media Library /wp-admin/upload.php3.24 ▲0.0140.67 ▲3.81

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Image Filters
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.45 ▼0.758.16 ▲6.3946.58 ▼0.47
Dashboard /wp-admin2,192 ▲155.58 ▼0.0295.66 ▲2.6844.02 ▲2.12
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.1035.73 ▼0.5835.19 ▼1.12
Add New Post /wp-admin/post-new.php1,526 ▼223.31 ▲0.29661.54 ▼24.3858.49 ▲2.11
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.05106.54 ▼4.9745.86 ▼0.74

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-image-filters/public/partials/easy-image-filters-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/easy-image-filters/admin/partials/easy-image-filters-admin-display.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
You can look at the official readme.txt

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

The main PHP script in "Easy Image Filters" version 1.0.2 is automatically included on every request by WordPress
114 characters long description:
Add cool filters and effects to images without leaving site admin screen. Save new image without loosing original.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,451 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
SVG100666
JavaScript43937370
PHP12158538316
Sass14053
CSS301246

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.86
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
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 files were detected