79% disable-fast-velocity-minify

Code Review | Disable Fast Velocity Minify

WordPress plugin Disable Fast Velocity Minify scored79%from 54 tests.

About plugin

  • Plugin page: disable-fast-velo...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.7.2
  • WordPress version: 6.3.1
  • First release: May 26, 2021
  • Latest release: May 26, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: devendra21986 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /378 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.66MB] [CPU: ▼3.83ms] Passed 4 tests

A check of server-side resources used by Disable Fast Velocity Minify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4942.13 ▲2.04
Dashboard /wp-admin4.03 ▲0.6955.77 ▼10.16
Posts /wp-admin/edit.php4.14 ▲0.7956.23 ▲3.36
Add New Post /wp-admin/post-new.php6.63 ▲0.7595.64 ▼10.54
Media Library /wp-admin/upload.php3.95 ▲0.7348.36 ▲9.27
Disable Fast Velocity Minify /wp-admin/options-general.php?page=dfvm4.3747.57

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 372 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Disable Fast Velocity Minify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.81 ▲0.571.75 ▼0.1147.58 ▲4.23
Dashboard /wp-admin2,232 ▲295.85 ▲0.98118.66 ▲12.8946.22 ▲6.47
Posts /wp-admin/edit.php2,108 ▲82.04 ▲0.0240.95 ▲0.9536.74 ▲3.58
Add New Post /wp-admin/post-new.php1,537 ▼823.41 ▼0.09630.55 ▲13.5364.41 ▲16.45
Media Library /wp-admin/upload.php1,411 ▲114.17 ▼0.01107.42 ▼19.1647.31 ▼2.73
Disable Fast Velocity Minify /wp-admin/options-general.php?page=dfvm1,0882.5939.5936.27

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 detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/disable-fast-velocity-minify/public/partials/disable-fast-velocity-minify-public-display.php
    • > /wp-content/plugins/disable-fast-velocity-minify/admin/partials/disable-fast-velocity-minify-admin-faq-display.php
  • 48× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/disable-fast-velocity-minify/includes/cmb2/includes/rest-api/CMB2_REST.php:19
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/disable-fast-velocity-minify/admin/partials/disable-fast-velocity-minify-admin-faq-display.php on line 22
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/disable-fast-velocity-minify/includes/cmb2/includes/CMB2_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/disable-fast-velocity-minify/includes/cmb2/includes/types/CMB2_Type_Multi_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-fast-velocity-minify/includes/cmb2/includes/helper-functions.php:131
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/disable-fast-velocity-minify/includes/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text_Date' not found in wp-content/plugins/disable-fast-velocity-minify/includes/cmb2/includes/types/CMB2_Type_Text_Time.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/disable-fast-velocity-minify/includes/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/disable-fast-velocity-minify/includes/cmb2/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/disable-fast-velocity-minify/includes/cmb2/includes/types/CMB2_Type_Textarea.php:13

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: fast velocity minify, disable fvm, disable fast velocity minify, exclude fvm, exclude fast velocity minify...

disable-fast-velocity-minify/disable-fast-velocity-minify.php Passed 13 tests

The main PHP script in "Disable Fast Velocity Minify" version 1.0.0 is automatically included on every request by WordPress
68 characters long description:
Disable fast velocity minify from post, page, and custom post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin47,618 lines of code in 222 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP722,4567,3028,050
CSS152721,1984,673
JavaScript104546801,740
Markdown42670798
JSON10034

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity18.60
▷ Minimum class complexity1.00
▷ Maximum class complexity188.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes77
▷ Abstract classes911.69%
▷ Concrete classes6888.31%
▷ Final classes00.00%
Methods591
▷ Static methods9315.74%
▷ Public methods49082.91%
▷ Protected methods9315.74%
▷ Private methods81.35%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants743.75%
▷ Class constants956.25%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
15 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/cmb2/images/ico-delete.png0.70KB0.72KB0.00%
includes/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
includes/cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
includes/cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
includes/cmb2-attached-posts/attached-posts-field.png195.45KB75.75KB▼ 61.24%