72% mncombine

Code Review | MnCombine

WordPress plugin MnCombine scored72%from 54 tests.

About plugin

  • Plugin page: mncombine
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-4.4.2
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: Mar 31, 2016
  • Number of updates: 20
  • Update frequency: every 52.0 days
  • Top authors: mneil (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

100+ active /16,654 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.01MB] [CPU: ▼5.08ms] Passed 4 tests

An overview of server-side resources used by MnCombine
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.55 ▼0.72
Dashboard /wp-admin3.33 ▼0.0245.04 ▼18.82
Posts /wp-admin/edit.php3.44 ▲0.0848.47 ▼1.33
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.46 ▲0.58
Media Library /wp-admin/upload.php3.25 ▲0.0234.86 ▲0.56
Asset Combine /wp-admin/plugins.php?page=mn-combine3.3130.69

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

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

Browser metrics Passed 4 tests

MnCombine: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.29 ▼0.971.95 ▲0.0344.15 ▲0.63
Dashboard /wp-admin2,207 ▲194.90 ▼0.96110.25 ▲1.4543.37 ▼0.81
Posts /wp-admin/edit.php2,093 ▲11.98 ▼0.0138.89 ▼1.9637.87 ▼5.41
Add New Post /wp-admin/post-new.php1,544 ▲3023.26 ▲5.74687.66 ▼3.9954.29 ▼19.23
Media Library /wp-admin/upload.php1,392 ▲14.18 ▲0.0397.60 ▼9.4444.53 ▼2.15
Asset Combine /wp-admin/plugins.php?page=mn-combine1,0841.7126.8633.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/plugins.php?page=mn-combine
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/plugins.php?page=mn-combine
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mncombine/views/display.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/mncombine/views/admin.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/mncombine/views/js.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/mncombine/views/css.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/mncombine/views/cache.php:17

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === mncombine === )
  • Tags: You are using too many tags: 14 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Choose the compression settings and mode), #2 (Select which files to combine from a list of files available in your WP install, active plugins, and active theme), #3 (Total request of 17 uncompressed/combined files : 5136ms. 79.254kb of transfered data. Page load time 1.19s), #4 (Total request of 3 compressed/combined files : 578ms. 66kb of transfered data. Page load time 1.13s. Significantly more)
The official readme.txt might help

mncombine/mncombine.php 92% from 13 tests

"MnCombine" version 1.1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin1,703 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP103027551,508
PO File14849160
JavaScript24128
CSS2027

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity29.29
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity4.81
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods52
▷ Static methods59.62%
▷ Public methods2955.77%
▷ Protected methods1223.08%
▷ Private methods1121.15%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.24KB8.55KB▼ 55.58%
screenshot-3.png25.47KB10.19KB▼ 59.99%
screenshot-4.png9.23KB4.72KB▼ 48.91%
assets/banner-772x250.png11.50KB5.06KB▼ 56.00%
screenshot-2.png28.81KB9.40KB▼ 67.38%