10% easy-fast-optimization

Code Review | Easy & Fast Optimization

WordPress plugin Easy & Fast Optimization scored10%from 54 tests.

About plugin

  • Plugin page: easy-fast-optimiz...
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Nov 9, 2019
  • Latest release: May 18, 2021
  • Number of updates: 9
  • Update frequency: every 61.9 days
  • Top authors: largbasket (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,266 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/easy-fast-optimization/index.php+41
    include(wp-content/plugins/easy-fast-optimization/functions/easy-fast-optimization-functions.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.87MB] [CPU: ▼55.26ms] Passed 4 tests

An overview of server-side resources used by Easy & Fast Optimization
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.354.84 ▼34.81
Dashboard /wp-admin2.13 ▼1.176.78 ▼44.05
Posts /wp-admin/edit.php2.13 ▼1.226.03 ▼49.11
Add New Post /wp-admin/post-new.php2.13 ▼3.756.51 ▼93.05
Media Library /wp-admin/upload.php2.13 ▼1.105.99 ▼32.66
Easy & Fast Optimization /wp-admin/options-general.php?page=easy_fast_optimization_options2.136.27

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 20 new options
New WordPress options
easy_fast_optimization_cach_enable
easy_fast_optimization_async_enable
db_upgraded
theysaidso_admin_options
easy_fast_optimization_check_enable
widget_theysaidso_widget
easy_fast_optimization_quer_enable
can_compress_scripts
easy_fast_optimization_html_enable
easy_fast_optimization_embd_enable
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy & Fast Optimization
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.71 ▲0.302.06 ▲0.4345.07 ▲3.76
Dashboard /wp-admin2,201 ▲275.57 ▼0.0795.61 ▲2.4443.11 ▲2.53
Posts /wp-admin/edit.php2,106 ▲62.05 ▲0.0836.10 ▼5.8036.35 ▲1.55
Add New Post /wp-admin/post-new.php1,531 ▼423.34 ▼0.13674.18 ▲67.2269.03 ▲15.68
Media Library /wp-admin/upload.php1,409 ▲64.21 ▼0.06105.10 ▲2.4147.10 ▲1.45
Easy & Fast Optimization /wp-admin/options-general.php?page=easy_fast_optimization_options8292.0524.2524.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/easy-fast-optimization/index.php+41
    include(wp-content/plugins/easy-fast-optimization/functions/easy-fast-optimization-functions.php): failed to open stream: No such file or directory
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=easy_fast_optimization_options
    • > Warning in wp-content/plugins/easy-fast-optimization/index.php+41
    include(wp-content/plugins/easy-fast-optimization/functions/easy-fast-optimization-functions.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=easy_fast_optimization_options
    • > Warning in wp-content/plugins/easy-fast-optimization/index.php+41
    include(): Failed opening 'wp-content/plugins/easy-fast-optimization/functions/easy-fast-optimization-functions.php' for inclusion (include_path='.:/usr/share/php')

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
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/easy-fast-optimization/admin/admin.php
    • > /wp-content/plugins/easy-fast-optimization/admin/index.php
    • > /wp-content/plugins/easy-fast-optimization/index.php
    • > /wp-content/plugins/easy-fast-optimization/functions/index.php
    • > /wp-content/plugins/easy-fast-optimization/functions/efo-functions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: Please take inspiration from this readme.txt

easy-fast-optimization/index.php 92% from 13 tests

The primary PHP file in "Easy & Fast Optimization" version 1.5.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-fast-optimization.php" instead of "index.php")

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,177 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP611667534
CSS212514
PO File23434128
JavaScript1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions31
▷ Named functions2890.32%
▷ Anonymous functions39.68%
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
There were not PNG files found in your plugin