79% easy-merge

Code Review | EasyMerge

WordPress plugin EasyMerge scored 79% from 54 tests.

About plugin

  • Plugin page: easy-merge
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Apr 12, 2022
  • Latest release: Apr 17, 2022
  • Number of updates: 7
  • Update frequency: every 1.7 days
  • Top authors: kellum42 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 272 total downloads

Benchmarks

Plugin footprint 65% 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 gracefully, with no errors

Server metrics [RAM: ▲0.53MB] [CPU: ▼2.06ms] Passed 4 tests

A check of server-side resources used by EasyMerge
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5640.27 ▼2.98
Dashboard /wp-admin3.83 ▲0.5353.53 ▲2.43
Posts /wp-admin/edit.php3.88 ▲0.5358.93 ▲10.26
Add New Post /wp-admin/post-new.php6.42 ▲0.5388.65 ▼8.88
Media Library /wp-admin/upload.php3.75 ▲0.5336.15 ▲1.21
EasyMerge /wp-admin/tools.php?page=easymerge3.6735.63

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: 2 new tables, 7 new options
New tables
wp_sez_changes
wp_sez_jobs
New WordPress options
theysaidso_admin_options
widget_recent-posts
sez_rules_props
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for EasyMerge
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.77 ▲0.021.74 ▼0.1439.57 ▼12.00
Dashboard /wp-admin2,210 ▲224.83 ▼0.20107.16 ▼5.4139.27 ▼7.30
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0240.70 ▲0.8636.18 ▼0.74
Add New Post /wp-admin/post-new.php1,536 ▲423.34 ▼0.02663.47 ▼32.5461.15 ▼1.30
Media Library /wp-admin/upload.php1,395 ▲44.18 ▼0.1597.25 ▼5.0641.92 ▼4.39
EasyMerge /wp-admin/tools.php?page=easymerge1,2951.8829.3946.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie tables were found after uninstall: 2 tables
    • wp_sez_jobs
    • wp_sez_changes
  • The uninstall procedure has failed, leaving 7 options in the database
    • sez_rules_props
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in easy-merge/assets to your readme.txt
  • Tags: Please add at least on tag
Please take inspiration from this readme.txt

easy-merge/easy-merge.php Passed 13 tests

Analyzing the main PHP file in "EasyMerge" version 1.0.4
80 characters long description:
Easily merge database changes from a production environment to dev environments.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected3,773 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP379006773,236
JavaScript43822343
CSS237194

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity17.80
▷ Minimum class complexity3.00
▷ Maximum class complexity50.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes315.00%
▷ Concrete classes1785.00%
▷ Final classes15.88%
Methods149
▷ Static methods6644.30%
▷ Public methods12281.88%
▷ Protected methods2114.09%
▷ Private methods64.03%
Functions37
▷ Named functions2772.97%
▷ Anonymous functions1027.03%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icons/3x/close-icon@3x.png1.37KB0.58KB▼ 57.28%