73% fazae-wp-booster

Code Review | Plugin Fazaé WP Booster

WordPress plugin Plugin Fazaé WP Booster scored73%from 54 tests.

About plugin

  • Plugin page: fazae-wp-booster
  • Plugin version: 1.4.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.1-6.2
  • WordPress version: 6.3.1
  • First release: May 7, 2021
  • Latest release: Jul 6, 2023
  • Number of updates: 21
  • Update frequency: every 37.7 days
  • Top authors: fazae (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,963 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.15ms] Passed 4 tests

This is a short check of server-side resources used by Plugin Fazaé WP Booster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.05 ▼1.25
Dashboard /wp-admin3.26 ▼0.0438.57 ▼8.64
Posts /wp-admin/edit.php3.45 ▲0.1047.45 ▼1.27
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.73 ▼1.43
Media Library /wp-admin/upload.php3.26 ▲0.0433.83 ▲0.34
Analytics /wp-admin/admin.php?page=fazae_analytics_admin3.2732.03
Wordpress Booster /wp-admin/admin.php?page=fazae_booster_admin3.3258.17

Server storage [IO: ▲29.54MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
  • Total filesystem usage should be limited to 25MB (currently using 29.54MB)
Filesystem: 426 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Fazaé WP Booster
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11413.40 ▼0.981.71 ▼0.0544.92 ▼2.97
Dashboard /wp-admin2,255 ▲645.03 ▼0.8599.61 ▼8.2671.84 ▲27.73
Posts /wp-admin/edit.php2,135 ▲432.21 ▲0.1934.45 ▼8.2731.96 ▼3.60
Add New Post /wp-admin/post-new.php1,552 ▲1417.52 ▼5.54731.73 ▲135.0555.18 ▲8.42
Media Library /wp-admin/upload.php1,434 ▲464.27 ▲0.09102.78 ▲5.5092.76 ▲49.61
Analytics /wp-admin/admin.php?page=fazae_analytics_admin8941.8026.7931.36
Wordpress Booster /wp-admin/admin.php?page=fazae_booster_admin1,1621.7765.7139.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 123× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WebPConvert\\Loggers\\BaseLogger' not found in wp-content/plugins/fazae-wp-booster/vendor/rosell-dk/webp-convert/src/Loggers/EchoLogger.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'MatthiasMullie\\PathConverter\\ConverterInterface' not found in wp-content/plugins/fazae-wp-booster/vendor/matthiasmullie/path-converter/src/NoConverter.php:14
    • > PHP Warning
      include(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/fazae-wp-booster/vendor/rosell-dk/exec-with-fallback/test.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'ImageMimeTypeGuesser\\Detectors\\AbstractDetector' not found in wp-content/plugins/fazae-wp-booster/vendor/rosell-dk/image-mime-type-guesser/src/Detectors/GetImageSize.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailed\\ConverterNotOperationalException' not found in wp-content/plugins/fazae-wp-booster/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/ConverterNotOperational/InvalidApiKeyException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'MatthiasMullie\\Minify\\Exceptions\\BasicException' not found in wp-content/plugins/fazae-wp-booster/vendor/matthiasmullie/minify/src/Exceptions/IOException.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WebPConvert\\Convert\\Converters\\AbstractConverter' not found in wp-content/plugins/fazae-wp-booster/lib/webpconverter/vendor/rosell-dk/webp-convert/src/Convert/Converters/ImageMagick.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailed\\FileSystemProblemsException' not found in wp-content/plugins/fazae-wp-booster/lib/webpconverter/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/FileSystemProblems/CreateDestinationFileException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WebPConvert\\Convert\\Exceptions\\ConversionFailed\\ConverterNotOperationalException' not found in wp-content/plugins/fazae-wp-booster/vendor/rosell-dk/webp-convert/src/Convert/Exceptions/ConversionFailed/ConverterNotOperational/SystemRequirementsNotMetException.php:7
    • > PHP Fatal error
      Trait 'WebPConvert\\Convert\\Converters\\BaseTraits\\AutoQualityTrait' not found in wp-content/plugins/fazae-wp-booster/lib/webpconverter/vendor/rosell-dk/webp-convert/src/Convert/Converters/AbstractConverter.php on line 26

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 Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: optimisation, fazae, cache

fazae-wp-booster/Plugin.php 85% from 13 tests

Analyzing the main PHP file in "Plugin Fazaé WP Booster" version 1.4.5
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Name the main plugin file the same as the plugin slug ("fazae-wp-booster.php" instead of "Plugin.php")

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Almost there! Just fix the following issues
  • Do not include executable or dangerous files in your plugin
    • .exe - Executable in Windows
      • wp-content/plugins/fazae-wp-booster/lib/webpconverter/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-103-windows-x64.exe
      • wp-content/plugins/fazae-wp-booster/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-110-windows-x64.exe
      • wp-content/plugins/fazae-wp-booster/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-120-windows-x64.exe
20,570 lines of code in 295 files:
LanguageFilesBlank linesComment linesLines of code
PHP2062,9087,18313,570
Markdown371,13803,475
JSON17001,546
YAML18325891,194
CSS1788447
XML870154
Bourne Shell33220102
JavaScript281250
Dockerfile12012
Bourne Again Shell15211
SVG1009

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.01
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces36
Interfaces1
Traits18
Classes204
▷ Abstract classes104.90%
▷ Concrete classes19495.10%
▷ Final classes00.00%
Methods894
▷ Static methods21824.38%
▷ Public methods58365.21%
▷ Protected methods18220.36%
▷ Private methods12914.43%
Functions35
▷ Named functions38.57%
▷ Anonymous functions3291.43%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.48MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/rosell-dk/webp-convert/docs/v2.0/converting/dice.png231.30KB58.53KB▼ 74.69%
vendor/fazaeWPCore/assets/images/fazae-logo-bl.png7.63KB4.18KB▼ 45.24%
assets/images/fazae-logo.png7.18KB3.61KB▼ 49.73%
vendor/fazaeWPCore/assets/images/icon.png1.28KB0.55KB▼ 57.02%
lib/webpconverter/vendor/rosell-dk/webp-convert/docs/v2.0/converting/dice.png231.30KB58.53KB▼ 74.69%