83% g-file-merge-minify

Code Review | G File Merge & Minify

WordPress plugin G File Merge & Minify scored 83% from 54 tests.

About plugin

  • Plugin page: g-file-merge-minify
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 5.8.1
  • First release: Oct 17, 2018
  • Latest release: Oct 17, 2018
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: sinanyorulmaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 317 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼134.38ms] Passed 4 tests

A check of server-side resources used by G File Merge & Minify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.89 ▲0.1642.27 ▲13.80
Dashboard /wp-admin3.12 ▲0.0647.93 ▲6.53
Posts /wp-admin/edit.php3.17 ▲0.0647.69 ▼0.81
Add New Post /wp-admin/post-new.php5.48 ▲0.04109.18 ▼543.48
Media Library /wp-admin/upload.php3.06 ▲0.0633.71 ▲0.26

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for G File Merge & Minify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.92 ▲0.3210.43 ▲1.3957.87 ▲2.26
Dashboard /wp-admin2,987 ▲536.11 ▲0.10143.16 ▼15.79116.59 ▼8.71
Posts /wp-admin/edit.php2,759 ▲202.72 ▲0.0167.06 ▲0.9589.17 ▼6.79
Add New Post /wp-admin/post-new.php1,628 ▲12821.40 ▲2.61323.77 ▼58.25164.83 ▲48.93
Media Library /wp-admin/upload.php1,824 ▲175.04 ▲0.01149.06 ▼1.04127.38 ▲3.71

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 10 options in the database
    • script_exclusion_status
    • merge_all_style_files
    • minify_script_file
    • exclude_style
    • style_exclusion_status
    • script_files_in_the_site
    • exclude_script
    • merge_all_script_files
    • minify_style_file
    • style_files_in_the_site

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/g-file-merge-minify/index.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/g-file-merge-minify/gfmm_options.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (An image from the setting panel of the "G File Merge & Minify" plug-in.), #2 (An image showing where to enter keywords.)
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

g-file-merge-minify/index.php 92% from 13 tests

The main PHP script in "G File Merge & Minify" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("g-file-merge-minify.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected325 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin