84% nazy-load

Code Review | Flying Images

WordPress plugin Flying Images scored84%from 54 tests.

About plugin

  • Plugin page: nazy-load
  • Plugin version: 2.4.14
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Oct 21, 2019
  • Latest release: Aug 9, 2023
  • Number of updates: 106
  • Update frequency: every 13.1 days
  • Top authors: gijo (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

6,000+ active /103,303 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.21ms] Passed 4 tests

An overview of server-side resources used by Flying Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.94 ▼8.02
Dashboard /wp-admin3.39 ▲0.0848.55 ▼5.93
Posts /wp-admin/edit.php3.44 ▲0.0850.43 ▼2.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.15 ▼16.03
Media Library /wp-admin/upload.php3.25 ▲0.0237.11 ▼0.14
Flying Images /wp-admin/options-general.php?page=flying-images3.2735.24

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 16 new options
New WordPress options
flying_images_enable_cdn
widget_theysaidso_widget
flying_images_quality
theysaidso_admin_options
widget_recent-comments
flying_images_cdn_exclude_keywords
flying_images_lazymethod
widget_recent-posts
flying_images_enable_lazyloading
flying_images_enable_compression
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flying Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲3614.44 ▼0.093.08 ▲0.8542.28 ▼3.27
Dashboard /wp-admin2,202 ▲225.50 ▼0.1087.39 ▼9.8778.80 ▲32.23
Posts /wp-admin/edit.php2,110 ▲51.98 ▼0.0438.44 ▼1.0233.96 ▼0.22
Add New Post /wp-admin/post-new.php1,532 ▼523.01 ▲4.97715.12 ▲55.9172.96 ▲4.32
Media Library /wp-admin/upload.php1,401 ▲14.30 ▲0.09102.26 ▼5.0765.80 ▲21.17
Flying Images /wp-admin/options-general.php?page=flying-images1,0121.9522.4126.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 16 options
    • flying_images_enable_cdn
    • flying_images_enable_lazyloading
    • flying_images_lazymethod
    • theysaidso_admin_options
    • flying_images_margin
    • flying_images_exclude_keywords
    • flying_images_cdn_exclude_keywords
    • widget_theysaidso_widget
    • flying_images_quality
    • FLYING_IMAGES_VERSION
    • ...

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 8× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nazy-load/settings/index.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nazy-load/lib/wpfc-bridge.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nazy-load/inject-js.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nazy-load/resource-hints.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nazy-load/lib/w3tc-bridge.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nazy-load/settings/lazyload.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/nazy-load/lib/w3tc-bridge.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nazy-load/init-config.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: compress images, image compression, cdn, adaptive images

nazy-load/flying-images.php 92% from 13 tests

The principal PHP file in "Flying Images" v. 2.4.14 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("nazy-load.php" instead of "flying-images.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,488 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP185163902,393
JavaScript17895

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity193.50
▷ Minimum class complexity138.00
▷ Maximum class complexity249.00
Average method complexity5.28
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods90
▷ Static methods11.11%
▷ Public methods7583.33%
▷ Protected methods1516.67%
▷ Private methods00.00%
Functions34
▷ Named functions3088.24%
▷ Anonymous functions411.76%
Constants23
▷ Global constants23100.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